什么是除构造函数和复制构造函数之外的类的默认方法 [英] what are default methods to a class other than constructor and copy constructor
本文介绍了什么是除构造函数和复制构造函数之外的类的默认方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
即编译器提供默认方法
除了构造函数
复制构造函数
i.e compiler provide default methods
except constructor
copy constructor
推荐答案
请参阅,例如: http ://stackoverflow.com/questions/3734247/what-are-all-the-member-functions-created-by-compiler-for-a-class-does-that-hap [ ^ ]。
-SA
Please see, for example: http://stackoverflow.com/questions/3734247/what-are-all-the-member-functions-created-by-compiler-for-a-class-does-that-hap[^].
—SA
这篇关于什么是除构造函数和复制构造函数之外的类的默认方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文