Root base class in C++

前端 未结 7 1528
逝去的感伤
逝去的感伤 2021-01-04 11:29

Every object in .NET inherits (directly or indirectly) from the common root base \"Object\". Is there such a common object root in C++? How do I pass any object to

7条回答
  •  自闭症患者
    2021-01-04 12:20

    Sorry - there is no root base object in C++. But you can define your own for all your classes.

提交回复
热议问题