Inheritance in Java MCQs Exercise I

Ques 1 Inheritance


Which of the following best describes the inheritance?

i) Inheritance hides the data to implementation.
ii) Any parent class can access the member of the child class.
iii) A class can access the members of another class just like their own definition.
iv) A class cannot access the members of another class just like their own definition.

A i only
B i and iii only
C iii only
D None of these