Answer:
Whenever we create object of a class,then constructor is called.
Constructor is a method in the class which has the same name as the class(in VB.Net it's New()).
It initializes the member attributes whenever an instance of the class is created.
It has no return type.
Asked In: Many Interviews |
Alert Moderator