正在加载图片...
9.1.5 Overloading of constructors Similar to a common function,the constructors are also can be overloaded. The constructors which have similar function ,but different type and number of parameters,can be assigned the same function name. The overload constructors can be respectively recalled according to their parameters'type and number by the complier. 2017年4月26日12时 H0务 第9章关于类和对象的进一步讨 1 论 BACK NEXTHOME2017年4月26日12时 15分 第9章 关于类和对象的进一步讨 论 11 • Similar to a common function, the constructors are also can be overloaded. • The constructors which have similar function ,but different type and number of parameters, can be assigned the same function name. • The overload constructors can be respectively recalled according to their parameters’ type and number by the complier
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有