This might be beyond most of you (it's beyond me so far). If you have two classes:
class A{
public:
int stupid;
void ShowStupid(void);
};
class B{
public:
int x,y;
A MeStupid;
};
Class "B" inherits class "A"'s info and can be accessed from within class "B":
B Hello;
Hello.MeStupid.stupid=5;
But, I can't do this:
B Hello;
Hello.MeStupid.ShowStupid();
// and within the "A" class "ShowStupid()" is like this:
void A::ShowStupid(void){
dbText(x,y,dbStr(stupid));
}
Because "x,y" is part of "B" not "A".
So here is my question: Is there a way to get info from "B" to be used within "A"? Remember, if I try this within "A"
It will fail to compile because class B has yet to be declared.
Any thoughts?
The fastest code is the code never written.