I
Indudhar
Hi Everyone,
Heres the logic.
objectOfClassA can access methods/variables of objectOfClassB
objectOfClassB can access methods/variables of objectOfClassC
And objectOfClassA cannot access methods/variables of objectOfClassC
How can I achieve the above? What various possibilities do I have?
Which one in your opinion is the best? Can I just use Inheritence to
implement the logic? Can I just use access modifiers to implement the
logic? How can I efficiently use both and other options if any, for
best results?
thanks,
Indu
Heres the logic.
objectOfClassA can access methods/variables of objectOfClassB
objectOfClassB can access methods/variables of objectOfClassC
And objectOfClassA cannot access methods/variables of objectOfClassC
How can I achieve the above? What various possibilities do I have?
Which one in your opinion is the best? Can I just use Inheritence to
implement the logic? Can I just use access modifiers to implement the
logic? How can I efficiently use both and other options if any, for
best results?
thanks,
Indu