From 531952a3005d78d087f9edc83a1b488d359dcf95 Mon Sep 17 00:00:00 2001 From: Franz Hollerer Date: Tue, 26 Sep 2017 12:27:49 +0200 Subject: [PATCH] Issue #999 c128 applied to c129 (#1036) --- CppCoreGuidelines.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index c1edeb3..4882cff 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -6789,7 +6789,7 @@ First we devise a hierarchy of interface classes: class Circle : public Shape { // pure interface 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: // constructors, destructor // ... - virtual Point center() const { /* ... */ } - virtual Color color() const { /* ... */ } + Point center() const override { /* ... */ } + Color color() const override { /* ... */ } - virtual void rotate(int) { /* ... */ } - virtual void move(Point p) { /* ... */ } + void rotate(int) override { /* ... */ } + 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: // constructors, destructor - int radius() { /* ... */ } + int radius() override { /* ... */ } // ... };