We need to take care of only one thing while using Constructors in Inheritance. When we extend any class into the other class. It forces us to declare a similar constructor in the child class as well. Usage of Constructors in Inheritance We can add constructor as we do normally without any return type. WhenRead More
OOPs Concept
Java | Object Oriented Programming (OOPs) Concept
Object Oriented Programming is a concept based on class and objects. A Class is like a repository which contains all data members and methods. On the other hand, an Object is an instance of a class which acquires all the properties(data members) and behavior(methods) of the class. OOPs, conceptsRead More