Object Oriented Programming (OOPs)
© examsiri.com
Question : 1 of 72
Marks:
+1,
-0
Given:
public class Plant {
  private String name;
  public Plant(String name) { this.name = name; }
  public String getName() { return name; }
}
public class Tree extends Plant {
  public void growFruit() { }
  public void dropLeaves() { }
}
Which statement is true?
Go to Question: