第六 多态性与虚函数.pptVIP

  • 4
  • 0
  • 约1.76万字
  • 约 72页
  • 2018-08-06 发布于江苏
  • 举报
第六 多态性与虚函数

第六章 多态性与虚函数 6.1多态性的概念 6.2一个典型的例子 6.3虚函数 6.4纯虚函数与抽象类 /TERM/P/polymorphism.html Generally, the ability to appear in many forms. In object-oriented programming, polymorphism refers to a programming languages ability to process objects differently depending on their data type or class. More specifically, it is the ability to redefine methods for derived classes. For example, given a base class shape, polymorphism enables the programmer to define different area methods for any number of derived classes, such as circles, rectangles and triangles. No matter what shape an object is, applying th

文档评论(0)

1亿VIP精品文档

相关文档