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]

Reply via email to