Solved

On Some Occasions, You Might Want to Access Parent Class

Question 24

Essay

On some occasions, you might want to access parent class data from a child class.Declaring the parent class field as public would violate the principle of information hiding, but declaring it private would make it inaccessible.How can the proper level of security be achieved?

Correct Answer:

verifed

Verified

If you want a derived class property or ...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions