Saturday, July 31, 2010

Constructors and Destructors

  • 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 the class.
  • A destructor is invoked when an object is destroyed.
  • A destructor releases the resources used by an object.

0 comments: