Go Back   Forums > Community Chatterbox > Tech Corner > Programming
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Similar Threads
Thread Thread Starter Forum Replies Last Post
World Class Rugby Romano Games Discussion 14 05-04-2011 08:26 PM
Playbahnosh joins the working class Playbahnosh Blah, blah, blah... 21 06-04-2008 10:09 AM
World Class Soccer Kosta Games Discussion 6 31-07-2006 02:48 AM
Your Favorite Class Koen Gaming Zone 53 06-01-2006 07:03 PM
The Best Rpg Class Of All Time Servo Gaming Zone 1 17-03-2005 01:58 AM


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 04:49 PM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.