Issue #999 c128 applied to c129 (#1036)

pull/1040/merge
Franz Hollerer 8 years ago committed by Jonathan Wakely
parent d318a68e35
commit 531952a300

@ -6789,7 +6789,7 @@ First we devise a hierarchy of interface classes:
class Circle : public Shape { // pure interface class Circle : public Shape { // pure interface
public: public:
int radius() = 0; virtual int radius() = 0;
// ... // ...
}; };
@ -6799,13 +6799,13 @@ To make this interface useful, we must provide its implementation classes (here,
public: public:
// constructors, destructor // constructors, destructor
// ... // ...
virtual Point center() const { /* ... */ } Point center() const override { /* ... */ }
virtual Color color() const { /* ... */ } Color color() const override { /* ... */ }
virtual void rotate(int) { /* ... */ } void rotate(int) override { /* ... */ }
virtual void move(Point p) { /* ... */ } void move(Point p) override { /* ... */ }
virtual void redraw() { /* ... */ } void redraw() override { /* ... */ }
// ... // ...
}; };
@ -6817,7 +6817,7 @@ but bear with us because this is just a simple example of a technique aimed at m
public: public:
// constructors, destructor // constructors, destructor
int radius() { /* ... */ } int radius() override { /* ... */ }
// ... // ...
}; };

Loading…
Cancel
Save