From e26831686548bb8c9b39040d99549384faf706dd Mon Sep 17 00:00:00 2001 From: Arun Nanduri Date: Mon, 5 Sep 2022 10:14:06 -0700 Subject: [PATCH] Documentation: Amend comment describing use of "virtual" and "final" --- Documentation/CodingStyle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/CodingStyle.md b/Documentation/CodingStyle.md index 730425b347..0d5c5b8baa 100644 --- a/Documentation/CodingStyle.md +++ b/Documentation/CodingStyle.md @@ -579,7 +579,7 @@ public: class Student : public Person { public: - virtual String description() final { ... }; // This is correct because it contains both the "override" and "final" keywords to indicate that the method is overridden and that no subclasses of "Student" can override "description". + virtual String description() final { ... }; // This is correct because it contains both the "virtual" and "final" keywords to indicate that the method is overridden and that no subclasses of "Student" can override "description". } ```