Two constructors, which is default?

后端 未结 6 1518
深忆病人
深忆病人 2020-12-12 02:29

Okay I got a pretty simple assignment.

I got these two constructors for class Person:

Person( const string &, const string &, const string &a         


        
6条回答
  •  轮回少年
    2020-12-12 02:49

    A default constructor is a constructor that either has no arguments, or if it has arguments, all the arguments have default values. So neither one of these could qualify as default constructor.

提交回复
热议问题