A
constructor initializes an object immediately upon creation. It has the same name as the class in which it resides and is syntactically similar to a method. The return type of a class’ constructor is the class type itself. It is called immediately after the object is created, before the new operator completes.
No comments:
Post a Comment