Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Derived classes and typecastings...

Status
Not open for further replies.

Nosferatu

Programmer
Jun 9, 2000
412
RO
I have a derived class where I try to work with some lower level classes, a kind of "wrapper", each one identified by querrying the base class "type".
The whole thing is actually a tree, each node can have a different type (very similar to XML's DOM, if anyone is familiar with it).

I fail using those classes (some members are uninitialized), when overrinding the virtual methods they declared. If I call the base class member (the one overriden), everything is working fine...

Does anybody know about something like this? [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top