I think I dont explain very well
I'm asking for a possible way to call directly the function of class A, created at class B, and this last created at main.
I have :
1 2 3 4 5 6 7 8 9 10 11 12 13 14
ClassA (.h and cpp)
the_function_of_a_I_want_to_be_accesible
ClassB (.h and cpp)
#include "classA.h"
private ClassA myclassA;
public a_trick_function(){
cmyclassA.the_function_of_a_I_want_to_be_accesible();
}
Main
ClassB myclassB;
myclassB.a_trick_function();