正在加载图片...
11.1 Introduction 复习:函数重载 要求 °函数名相同,参数列表不同 °仅返回值不同不作为重载 注意:有缺省参数的函数 func(int i, intj= o)func(int i) 特例: const成员函数 void Employee: display o0 void Employee: display( const t 0 2018, SEU. All rights reserved. 4© 2009, SEU. All rights reserved. © 2018, SEU. All rights reserved. 4 11.1 Introduction 复习:函数重载 要求 函数名相同,参数列表不同 仅返回值不同不作为重载 注意:有缺省参数的函数 func(int i, int j = 0) func(int i) 特例:const成员函数 void Employee::display(){} void Employee::display() const {}
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有