A subclass can also override a function declared in the superclass, if the superclass edition of the function is marked with the override keyword. Without that keyword, subclasses cannot override the function.

You can learn more about this in:
Tags:
Run Edit