What are constructors ? explain different types of constructor with example

Hi,

What are constructors ? explain different types of constructor with example

Please feel free suggest links for references.

thanks,

View Answers

March 26, 2013 at 11:15 AM

Hi,

For creating a new instance or a new object of class we using the constructor for that particular class. For every class we have at least one own constructor require. That's why the Constructors are used to initialize the instance variables (fields) of an object. For details about constructors visit the link

To know more related to What are constructors with examples









Related Tutorials/Questions & Answers: