实验4 - Inheritance.docVIP

  • 136
  • 0
  • 约1.04万字
  • 约 9页
  • 2017-07-06 发布于湖北
  • 举报
实验4 - Inheritance

LABORATORY 4 (实验4) Inheritance 继承 姓名: ___________ 学号: ___________ 班级: (注意:不能使用VS2010–VS2013直接打开VC++6.0的项目,而采用新建项目,再将源文件加入到新建项目中的方法) Objective(实验目的) In this week’s lab you learn to create new objects using inheritance. Inheritance supports both abstraction and code reuse—two valuable programming techniques. 在本周的实验中你们将学习用继承的方法来创建新对象。继承能很好的支持抽象和代码重用——这是两个有价值的编程技术。 Key Concepts (相关概念) _ Inheritance(继承) _ Is-a relationship(is-a 关系_ Code reuse(代码重用) _ Abstraction(抽象) _ Base class(基类) _ Derived class(派生类) _ Derived-class declaration(派生类申明) _ Derived-class implementation(派生类实现) GETTING

文档评论(0)

1亿VIP精品文档

相关文档