View Single Post
Old 06-01-2005, 03:21 AM   #1
twisted-mystic
Abandonia nerd

 
Join Date: Dec 2004
Location: ,
Posts: 60
Thumbs up

:help: :help: :help:
like i said previously, i'm no C++ Guru.

say i had

class a{};

class b::a{};
class c::a{};

ok i use the class a to basically give me common ground between b and c, now, if i have a function that returns a type of class a, how do i type cast that into type b?

like this, the function has an object that is of class b(which is also part of class a), the function returns a type of class a, but i want to typecast it back to type b, this is'nt even making sense to me, LOL, hopefully someone out there will know what i'm talking about.
twisted-mystic is offline                         Send a private message to twisted-mystic
Reply With Quote