瀏覽代碼

Documentation: Amend comment describing use of "virtual" and "final"

Arun Nanduri 2 年之前
父節點
當前提交
e268316865
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Documentation/CodingStyle.md

+ 1 - 1
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".
 }
 
 ```