I have classes A1, A2, A3, A4 derived from a class A. How can I access the other classes from another derived class (I need to access A2 or A3 or A4 from class A1)?
A condition is that I will not have the other class instances as members. Is there any way?
Without creating instance, you can
only access static members of that
class. So if you want to access any
method without creating instance you
should keep that member as static.