1.

Which of the following statements about inheritance is false?

A. Inheritance allows you to minimize the amount of duplicate code in an application by sharing common code among several subclasses.
B. A subclass inherits all the members (fields, methods, and nested classes) from its superclass.
C. Through inheritance, a parent class is a more specialized form of the child class.
D. Inheritance allows you to reuse the fields and methods of the super class without having to write them yourself.
Answer» D. Inheritance allows you to reuse the fields and methods of the super class without having to write them yourself.


Discussion

No Comment Found