C++构造函数
摘要:在类声明,使用无参数的一个特殊函数,用来初始化对象。 构造函数可以显式或者隐式调用,先说显示调用:比如构造函数为super(string a),那么显式调用如下: 1、super man = super("you"); 2、super *man = new sper("you"); 相应的隐式调用如
阅读全文
posted @ 2018-11-03 22:03
posted @ 2018-11-03 22:03
posted @ 2016-10-15 23:13
posted @ 2016-10-09 23:29