Email address:
Password:
SCJP/OCPJP 1.6 certification
Practice Exams and Training
SCJP Online Training » Discussions

Inheritance question

Dear Fred,


If we have two classes A and B such that B extends A and A has-a reference to Something.


class A

{

Something r;

}


class B extends A{}


So by inheritance, does B also have-a Something???

Assuming r is visible to B, yes!

ExamLab © 2008 - 2024