...

/

Override and Final

Override and Final

In this lesson, we'll discuss override and final in detail.

We'll cover the following...

override #

The override keyword in a method declaration expresses that the method should override a virtual method of a base class. The compiler checks this assertion. It checks the parameter of the method, the return type of the method, and qualifiers like const and volatile. Of course, the compiler notices if the overridden method is not virtual.

The compiler verifies if the override annotated method actually overrides a virtual method of a base class.

  • The compiler checks for
    • The
...