Question: Java Consider these class declarations: public class Person {...} public class Teacher extends Person {...} Which is a true statement? I Teacher inherits the constructors
Java

Consider these class declarations: public class Person {...} public class Teacher extends Person {...} Which is a true statement? I Teacher inherits the constructors of Person. II Teacher can add new methods and private instance variables. III Teacher can override existing private methods of Person. (A) I only (B) II only (C) III only (D) I and II only (E) II and III only
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
