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

This commit is contained in:
Arun Nanduri 2022-09-05 10:14:06 -07:00 committed by Brian Gianforcaro
parent 325a8a3d9b
commit e268316865
Notes: sideshowbarker 2024-07-17 07:22:51 +09:00

View file

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