Constructor
Please suggest me few project level examples related to the static constructor and non static constructor where can we use properly ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nilesh JadavPosted May 28, 2015, 8:39 AM
A constructor is a special type of method that is invoked when you create a new instance of a class .A constructor is used to initialize the members of a class. The name of a constructor in the same as the name of the class that contains it.
Constructor Need in application : - To initialize member variables, a function can be invoked as soon as an object is created.