Click here to Skip to main content
15,913,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: George_George Pin
George L. Jackson31-Jan-08 10:15
George L. Jackson31-Jan-08 10:15 
GeneralRe: George_George Pin
led mike31-Jan-08 11:20
led mike31-Jan-08 11:20 
GeneralRe: George_George Pin
Hamid_RT31-Jan-08 20:16
Hamid_RT31-Jan-08 20:16 
GeneralOverloading and virtual functions Pin
bob1697231-Jan-08 7:07
bob1697231-Jan-08 7:07 
GeneralRe: Overloading and virtual functions Pin
David Crow31-Jan-08 7:22
David Crow31-Jan-08 7:22 
GeneralRe: Overloading and virtual functions Pin
bob1697231-Jan-08 7:34
bob1697231-Jan-08 7:34 
GeneralRe: Overloading and virtual functions Pin
David Crow31-Jan-08 7:50
David Crow31-Jan-08 7:50 
GeneralRe: Overloading and virtual functions Pin
bob1697231-Jan-08 7:58
bob1697231-Jan-08 7:58 
I guess I'm missing the point. I apologize if I'm missing something right under my nose.

If your saying a derived class needs to implement all the virtual methods that are in the base, then I guess I'm not understanding why this works...

class CBaseClass
{
public:
CBaseClass(void) {}
virtual ~CBaseClass(void) {}
virtual void DoSomething(int a) {}
virtual void DoSomething(int a, int b) {}
};

class CDerivedClass : public CBaseClass
{
public:
CDerivedClass(void) {}
virtual ~CDerivedClass(void) {}
};

int _tmain(int argc, TCHAR* argv[], TCHAR* envp[])
{
CDerivedClass testing;
testing.DoSomething(5,5); // Get an error on this line
}
GeneralRe: Overloading and virtual functions Pin
David Crow31-Jan-08 8:44
David Crow31-Jan-08 8:44 
GeneralRe: Overloading and virtual functions Pin
CPallini31-Jan-08 9:24
mveCPallini31-Jan-08 9:24 
GeneralRe: Overloading and virtual functions Pin
bob1697231-Jan-08 9:59
bob1697231-Jan-08 9:59 
GeneralRe: Overloading and virtual functions Pin
Mark Salsbery31-Jan-08 9:31
Mark Salsbery31-Jan-08 9:31 
GeneralRe: Overloading and virtual functions Pin
led mike31-Jan-08 8:36
led mike31-Jan-08 8:36 
GeneralRe: Overloading and virtual functions Pin
bob1697231-Jan-08 9:15
bob1697231-Jan-08 9:15 
GeneralRe: Overloading and virtual functions Pin
Brian R19-Mar-08 9:14
Brian R19-Mar-08 9:14 
GeneralRe: Overloading and virtual functions Pin
bob1697212-Apr-08 19:57
bob1697212-Apr-08 19:57 
GeneralOOP Classes / Windows Pin
egerving31-Jan-08 6:20
egerving31-Jan-08 6:20 
GeneralRe: OOP Classes / Windows Pin
David Crow31-Jan-08 7:12
David Crow31-Jan-08 7:12 
GeneralRe: OOP Classes / Windows Pin
Maximilien31-Jan-08 8:16
Maximilien31-Jan-08 8:16 
GeneralRe: OOP Classes / Windows Pin
Mark Salsbery31-Jan-08 8:29
Mark Salsbery31-Jan-08 8:29 
AnswerRe: OOP Classes / Windows Pin
CPallini31-Jan-08 8:59
mveCPallini31-Jan-08 8:59 
GeneralRe: OOP Classes / Windows Pin
Maximilien31-Jan-08 9:02
Maximilien31-Jan-08 9:02 
GeneralRe: OOP Classes / Windows Pin
CPallini31-Jan-08 9:05
mveCPallini31-Jan-08 9:05 
GeneralRe: OOP Classes / Windows Pin
Maximilien31-Jan-08 9:09
Maximilien31-Jan-08 9:09 
GeneralRunning a new ActiveX Control help. Pin
TheBerk31-Jan-08 5:48
TheBerk31-Jan-08 5:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.