mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Documentation: Amend comment describing use of "virtual" and "final"
This commit is contained in:
parent
325a8a3d9b
commit
e268316865
Notes:
sideshowbarker
2024-07-17 07:22:51 +09:00
Author: https://github.com/ananduri 🔰 Commit: https://github.com/SerenityOS/serenity/commit/e268316865 Pull-request: https://github.com/SerenityOS/serenity/pull/15134
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ public:
|
||||||
|
|
||||||
class Student : public Person {
|
class Student : public Person {
|
||||||
public:
|
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".
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue