Which of the following is true about inheritance in Java?
A. A class can extend only one class at a time
B. A subclass can access private members of its superclass
C. The final keyword can be used to prevent a class from being inherited
D. All of the above
Answer:A
Which of the following is true about inheritance in Java?
A. A class can extend only one class at a time B. A subclass can access private members of its superclass C. The final keyword can be used to prevent a class from being inherited D. All of the above