Object Oriented Programming (OOPs)
© examsiri.com
Question : 65 of 72
Marks:
+1,
-0
Given:
Which statement(s), inserted at line 6, will compile? (Choose all that apply.)
1. class Plant {
2.   String getName() { return "plant"; }
3.   Plant getType() { return this; }
4. }
5. class Flower extends Plant {
6.   /*insert code here*/
7. }
8. class Tulip extends Flower { }Which statement(s), inserted at line 6, will compile? (Choose all that apply.)
Go to Question: