What's the difference between a derived object and a base object in c++?

前端 未结 10 1868
一个人的身影
一个人的身影 2021-01-01 06:23

What\'s the difference between a derived object and a base object in c++,

especially, when there is a virtual function in the class.

Does the derived object

10条回答
  •  粉色の甜心
    2021-01-01 07:11

    A base object is one from which others are derived. Typically it'll have some virtual methods (or even pure virtual) that subclasses can override to specialize.

    A subclass of a base object is known as a derived object.

提交回复
热议问题