Dear All,
If I am not wrong, then
***** all the members in a super class are NOT inherited by the subclass. *****
In case of private members, they are inherited by the sub class, but are not accessible.
In case of static members, they are NOT inherited as they belong to the super class.
Rest of the members are inherited by the subclass.
Considering the above statements, KAM Page number 178 Qestion number 6.1
Which of the following statements are true?
Select all valid answers:
a)In
java the 'extends' clause is used to specify inheritance
b)The subclass of a non-abstract class can be declared abstract
c)All members of the superclass are inherited by the subclass
d)A final class can be abstract
e)A class, in which all the members are declared private, cannot be declared coderanch.
I will vote for only options a and b. But the book's answer says that a, b, c are valid options.
How will you people deal with this question??
Bye,
Tualha Khan