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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Returning a class from a function

Status
Not open for further replies.

aLittleBoy

Programmer
Sep 17, 2002
6
CA
How do I return a class from a function within a class?
This is my signature
 
You can actually just do this :

CMyClass class::memberfunction(void)
{
CMyClass object;
....
return(object);
}


/JOlesen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top