Constructor's in object oriented program are a special category of methods/functions used to initialize all of the local variables of a class for any object. Constructor as the same name as of the class. if no constructor is defined than a constructor already exists which may set all the values of variables to null.
No comments:
Post a Comment