This commit is contained in:
Sergey Zubkov
2021-06-18 17:03:45 -04:00
parent 4c4fb37b43
commit bda7ff108f

View File

@@ -7129,8 +7129,8 @@ An abstract class typically does not have any data for a constructor to initiali
class Shape { class Shape {
public: public:
// no user-written constructor needed in abstract base class // no user-written constructor needed in abstract base class
virtual Point center() const =0; // pure virtual virtual Point center() const = 0; // pure virtual
virtual void move(Point to) =0; virtual void move(Point to) = 0;
// ... more pure virtual functions... // ... more pure virtual functions...
virtual ~Shape() {} // destructor virtual ~Shape() {} // destructor
}; };