+ 2
How to make an abstract class?
2 Respostas
+ 1
declare a member function as a pure virtual function, for example in C++
class Animal{
Animal(){}
void sound() = 0; //this is a pure virtual member function, it must be implemented in all derived classes
}
0
in above also make sound() protected or public member function.