Examlex

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?


Definitions:

Nonjudgmental

Refers to an attitude or approach that avoids making premature judgements or evaluations, typically in the context of understanding or interacting with others.

Assertive

Being confident without being aggressive; to express one's needs, desires, or opinions in a respectful and clear manner.

Aggressive

Expressing one’s interests while denying the rights of others by blaming, judging, and evaluating other people.

Impromptu Talking

Speaking unprepared and spontaneously in front of an audience, without prior planning or rehearsal.

Related Questions