what is instance variable in constructor?
A constructor of the class is called every time an object is created. Instance variable means the non-static member variables declared inside a class. ... A constructor is used to initialize class variables where the constructors name is same as that of class.