Method Overriding and Inheritance

If a class has a method with the same name as its base class or interface has, it overrides the method. In order to prevent a method to be overridden from a subclass keyword final is used. The final keyword can also be used in class definitions to prevent use of the class as a base class. Derived classes constructor can define on its first line which base class constructor is used. If base class doesn't have a default constructor, this is mandatory.