mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
Documentation: Amend comment describing use of "virtual" and "final"
This commit is contained in:
parent
325a8a3d9b
commit
e268316865
|
@ -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".
|
||||
}
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue