QuestionQ142
Working with InheritanceGiven the contents of the Tree.java and Plant.java files:

and this code fragment:

Which code fragment is valid on line 10?
- A t.m1();
- B t.m1();t.m3();
- C t.m1();t.m2();t.m3();t.m4();
- D t.m1();t.m3();t.m4();
Given the contents of the Tree.java and Plant.java files:

and this code fragment:

Which code fragment is valid on line 10?
Community Discussion