Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions