Inheritance is one of the important concept in OOPs. Java Inheritance is a process by which one class can re-use the methods and fields of other class. The Derived class(Sub class - The class which inherits the Parent class) re-uses the methods and variables of the Base class(Super class). … [Read more...]
What is Method Overriding in Java
When a Sub class has the implementation of the same method which is defined in the Parent class then it is called as Method Overriding. Unlike Method Overloading in Java the parameters passed will not differ in Overriding. Lets now look in how to Override a method in Java. … [Read more...]