I can't tell how the other classes are implemented, but it appears that you are 
not defining a pure virtual function that was declared in one of your base 
classes.


I hope this helps


--- On Tue, 3/31/09, glogic20 <[email protected]> wrote:

From: glogic20 <[email protected]>
Subject: [c-prog] Abstract class
To: [email protected]
Date: Tuesday, March 31, 2009, 2:04 PM











    
            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]

Reply via email to