+ 1

Whar are the advantages of virtual base class and virtual functions in c++

3rd Mar 2020, 5:51 AM
Fatima
4 Respostas
0
Virtual classes, compared to abstract are class that are optional to overload. For example, you have a base class Animal with methods sound() and move(). Class Dog will overload both methods, but class Fish wont overload sound() because it doesn't make a sound
3rd Mar 2020, 6:04 AM
coddy
coddy - avatar
0
Thank u. but i need 5 advantages of virtual base class and virtual functions in c++
3rd Mar 2020, 6:08 AM
Fatima
0
No examples🙃
3rd Mar 2020, 6:09 AM
Fatima
3rd Mar 2020, 9:09 AM
Fernando Pozzetti
Fernando Pozzetti - avatar