You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1-A constructor is a member function of a class which initializes objects of a class
2-Each class has a contructor (if user is not specifying any constructor JVM makes a constructor[ called default-constructor also-called No-argument constructor] for it during compilation )
3- Constructor declarations look like method declarations—except that they use the name of the class and have no return type.