kk but my class ExitListenerAA should not be an abstract class.. i dont derive any other classes from it and i dont have any virtual functions within the code itself so i should be able to call it?
sorry if these are stupid questions this is the first time i tried multiple inheritance and am very shaky on my feet To: [email protected] From: [email protected] Date: Tue, 31 Mar 2009 08:14:15 -0600 Subject: Re: [c-prog] Abstract class hello, If you have an abstract class it just defines the makeup of other classes, and is supposed to be inherited. It's not actually supposed to be called. Thanks, Tyler Littlefield Web: tysdomain.com email: [email protected] My programs don't have bugs, they're called randomly added features. ----- Original Message ----- From: glogic20 To: [email protected] Sent: Tuesday, March 31, 2009 8:04 AM Subject: [c-prog] Abstract class Hi all I just have a question on abstract classes. I have created a class using multiple inheritance class ExitListenerAA : public FrameListener, public OIS::MouseListener, public OIS::KeyListener { public: ExitListenerAA(OIS::Keyboard *keyboard): mKeyboard(keyboard) //code } In my main code i am creating as follows ExitListenerAA *mListener; mListener = new ExitListenerAA(mKeyboard); On this line i get an error Error 1 error C2259: 'ExitListenerAA' : cannot instantiate abstract class Im just abit confused on how this error comes about. Any help would be great cheers G [Non-text portions of this message have been removed] _________________________________________________________________ Express your personality in color! Preview and select themes for HotmailĀ®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=TXT_MSGTX_WL_HM_express_032009#colortheme [Non-text portions of this message have been removed]
