Question: Which of the following statements are true? Select the two correct answers. (a) In Java, the extends clause is used to specify the inheritance relationship.
Which of the following statements are true?
Select the two correct answers.
(a) In Java, the extends clause is used to specify the inheritance relationship.
(b) The subclass of a non-abstract class can be declared as 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 as public.
Step by Step Solution
3.40 Rating (156 Votes )
There are 3 Steps involved in it
a and b The extends clause is used to specify that a class ... View full answer
Get step-by-step solutions from verified subject matter experts
