Try my app Expense Manager @ google play and amazon store.

Monday, July 2, 2012

Constructor and Destructor in .NET

What is a Constructor? 

It is the first method that are called on instantiation of a type. It provides way to set default values for data before the object is available for use. Performs other necessary functions before the object is available for use.

What is a Destructor?

It is called just before an object is destroyed. It can be used to run clean-up code. You can't control when a destructor is called since object clean up by common language runtime.

No comments:

Post a Comment

Follow by Email

Google+ Badge