|
A question on Classes
Assume that i have two classes
class A;
class B:public A;
and i take a pointer later on, such as...
B b;
A* a=&b
Obviously, i can go move from the outter class to the inherited classes. However, how can i do the reverese?
that would be:
B *bb=a;
in a few source it looks like this...
Obviously this will produce an error. I''m sure there must be some macro or something that can get me back to the ''child'' class.
Any ideas?
thanks
... LEMMINGS ... LEMMINGS ... LEMMINGS ... LEM..... SpLaSh!...Could this be what we stand like before the mighty One?Are we LeMmIngS or WhAt!? ;)
|
Magmai Kai Holmlor
- The disgruntled & disillusioned
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement