...函数,对于一个对象您首先应该做的就是给他一些值,这经常能够通过赋值来完成我已解释了为什么缺省构造(default-constructing)一个对象然后赋值给他比用您真正需要他持有的值初始化他更低效。那个分析也适用于此。
基于20个网页-相关网页
缺省构造函数 default constructor
缺省构造器 default constructor
缺省构造方法 Constructor method
带缺省参数的构造函数 constructor with default arguments
缺省复制构造函数 default copy constructor
缺省构造
Default construction
以上为机器翻译结果,长、整句建议使用 人工翻译 。
您必须具有公共缺省构造器。
You must have a public default constructor.
youdao
在. NET中,序列化类也需要缺省构造函数。
In.net, a default constructor is also needed for a serialization class.
可缺省构造的对象只需具有一个缺省构造函数。
DefaultConstructible objects only need to have a default constructor.
应用推荐
模块上移
模块下移
不移动