Description: 用C++实现一个具体事例,形状作为基类,正方形,三角形等等作为派生类。来体现类的多态性,其中涉及多态,继承,虚函数的使用。-using a C++ example to illustrate polymorphism, virtual function and etc. The example has a base class of shape, and many concrete shapes as derived classes. Platform: |
Size: 20480 |
Author:scorpioc |
Hits: