Posted By: andrey20
C++: can i create Polymorphism without 'virtual'??? - 05/12/18 07:44
Hello,
i'm doing some test code using macros.
these macro type is only for avoid repeat some lines code.
on base class, we have a virtual function.
if on derived class we have a prototype function, we must define it.
i need try to see if:
1 - can prototype function without define it;
2 - or if i can create another another way for Polymorphism.
what you can advice me?
I tried searching from Covoco but I couldn't find anything about it ! I will be greatful if you point me in the right direction.
Any help wll be appreciated.
Thank you
i'm doing some test code using macros.
these macro type is only for avoid repeat some lines code.
on base class, we have a virtual function.
if on derived class we have a prototype function, we must define it.
i need try to see if:
1 - can prototype function without define it;
2 - or if i can create another another way for Polymorphism.
what you can advice me?
I tried searching from Covoco but I couldn't find anything about it ! I will be greatful if you point me in the right direction.
Any help wll be appreciated.
Thank you