Author
anonymous
about 7 years ago
Language
Compiler
Options
Author
anonymous
about 7 years ago
$
prog.cc:19:27: error: cannot declare parameter 'WhatEvent' to be of abstract type 'Event'
void CallEvent(Event WhatEvent)
~~~~~~^~~~~~~~~
prog.cc:3:11: note: because the following virtual functions are pure within 'Event':
class Event
^~~~~
prog.cc:6:24: note: 'virtual void Event::Run(int)'
virtual void Run(int Param) = 0;
^~~
prog.cc: In function 'int main()':
prog.cc:28:23: error: cannot allocate an object of abstract type 'Event'
CallEvent(mE);
^
Exit Code:
1