mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
Documentation: Amend comment describing use of "virtual" and "final"
This commit is contained in:
parent
325a8a3d9b
commit
e268316865
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…
Add table
Add a link
Reference in a new issue