I have programmed several classes and run into the following problem (too much code to display):
1) class A
2) class B
3) class C
in class A there is an object created of class B: objB
in class B there is an object created of class C: objC
Class C contains a getFirstName method.
So why I cannot say in class A:
I get a private access in class B error message, which makes no sense because the classes and the method and the references of the objects are public!