Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. Private variables are not inherited. They are simply ignored and not made part of the derived object body.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  private variables  inheritance  object oriented programming (oops)  oops concepts|
|Can we access private members of the parent class ? i.e Are private members of the class visible in the derived class ?|
|Why can't we declare on outer class as private ?|
|Can we serialize objects with only private variables in Java ?|