What is difference between virtual base class and virtual function?

1 answer

Answer

1131551

2026-08-20 02:30

+ Follow

A virtual class allows children classes to inherit multiple classes that all share a common ancestor. Without this property, the child class would contain multiple copies of the same parent class. A virtual function is a function, with a body, defined in a parent class that may be overridden in the parent class.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.