View Single Post
Some C++ questions
Old
  (#1)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Some C++ questions - 13-12-2004

I have a few questions for the C++ gurus here.

What does the ... do in functions? Like here:

Code:
void blah(int x, int y, ...);
Why would I need to use virtual functions? I just can't see why I would need to use them.

Is it possible to make a pointer off of a class that is inherited by another class, and then use that to point to a different one? Like this:

Code:
class theclass
 {
 };
 
 class theotherclass:public theclass
 {
 };
 
 theclass instance = new theotherclass;
Finally, why would I inherit another class privately?


sfx1999.postcount++
  
Reply With Quote