Question: Section B- Indicate TRUE or FALSE for the following statements: (i) A subclass is a subset of a superclass. (i) The private members of a

 Section B- Indicate TRUE or FALSE for the following statements: (i)

Section B- Indicate TRUE or FALSE for the following statements: (i) A subclass is a subset of a superclass. (i) The private members of a superclass can directly access by the subclass (iii) An instance of a subclass is always an instance ofa superclass. (iv) A final method in a superclass can be overridden. (v) A subclass cannot override methods that are declared static in the superclass. (vi) Polymorphism is the technique of using the different method name to indicate different implementations. A subclass inherits all the data and methods of its superclass, except the private ones When you create any subclass object, the subclass constructor must execute first, (vii) (viii) and then the superclass constructor executes. The keyword extends is used to access the parent class method The keyword super is used to indicate the inheritance. (ix) (x) (10 marks) acerr V-31

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!