I have 2 classes, say class A and class B.
Class B is created in class A.
I have a method in class A, which needs to be executed in both class A and class B. Calling the me
You could make one class a delegate of the other but that is kind of arbitrary relationship-wise.
Is there any reason not to use inheritance - both A + B subclass from Z - and Z is where your common method is? Then they could both call [self calculate];