Inheritance in Java 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


c is the correct option