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

前端 未结 10 1875
一个人的身影
一个人的身影 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条回答
  •  旧时难觅i
    2021-01-01 07:13

    a public colon. ( I told you C++ was nasty )

    class base { }
    class derived : public base { }
    

提交回复
热议问题