正在加载图片...
121 Introduction-继承的概念 °软件重用 °在已存在的类基础上构建新的类 吸纳已有类的数据及行为(数据成员及成员函数) °可以强化扩展一些新的功能 Graduate Student 重写? Student String Name String Name int Age int Age Void Exam 重用? Void Exam Void Research U 2UI0, SEU. All iGrs reserved© 2009, SEU. All rights reserved. © 2018, SEU. All rights reserved. 4 12.1 Introduction --继承的概念 软件重用 在已存在的类基础上构建新的类 吸纳已有类的数据及行为(数据成员及成员函数) 可以强化扩展一些新的功能 Student String Name int Age ……. Void Exam() Graduate Student String Name int Age ……. Void Exam() Void Research() 重写? 重用?
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有