Base Copy constructor not called

前端 未结 6 1986
悲&欢浪女
悲&欢浪女 2021-02-10 07:44
class Base
{
      public:
      int i;

      Base()
      {
          cout<<\"Base Constructor\"<

        
6条回答
  •  悲&欢浪女
    2021-02-10 08:37

    you should read this: it explain how inheritance & special members like constructors are working.

提交回复
热议问题