正在加载图片...
Constructor It can have any type of parameters,but can't have returning type.So when defining and declaring a constructor,you can't point out its type,even the “void'type. It may be inline functions,overloading functions, functions without format parameters. In practice,you usually need define a constructor for each class.If you haven't define a constructor,the complier will automatically create a constructor without a parameters. 2017年4月26日12时 H05务 第9章关于类和对象的进一步讨 论 BACK NEXTHOME2017年4月26日12时 15分 第9章 关于类和对象的进一步讨 论 5 uIt can have any type of parameters, but can’t have returning type. So when defining and declaring a constructor, you can’t point out its type, even the “void” type. uIt may be inline functions, overloading functions, functions without format parameters. uIn practice, you usually need define a constructor for each class. If you haven’t define a constructor, the complier will automatically create a constructor without a parameters
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有