// Shape.h
#ifndef _SHAPE_H
#define _SHAPE_H
class Shape {
public:
Shape();
};
#endif
說明:
// ShapeImp.h
#ifndef _SHAPEIMP_H
#define _SHAPEIMP_H
class ShapeImp {
virtual float getArea() = 0;