google.com, pub-5796814184912345, DIRECT, f08c47fec0942fa0 Types of constructor C# dot net ,instance constructors ,Non instance constructors
02 05 08

Types of constructor C# dot net ,instance constructors ,Non instance constructors


Types of constructor C# dot net ,instance constructors ,Non instance constructors

Types of constructor:

a)instance constructors

     1)Default constructor:-

  • User defined default constructor
  • System defined default constructor

    2)Parameterized constructor
    3)Copy constructor
    4)Private constructor

b )Non instance constructors

    1)Static constructor


User defined default constructor:-


  1. This constructor is created by the programmer with in the class.
  2. This is the parameter less constructor.
  3. In general this constructor is used to initialize the required data into the data fields.
  4. A class can contain only one default constructor.
  5. A class can contain  only one default constructor.
  6. If class can contain more than one default constructor it raises a compilation error due to ambiguity.



System defined default constructor:


  1. When their is no constructor available with in the class run time will create its own constructor and will store the default values in to the data fields.
  2. This constructor created by the run time is known as system defined default constructor.
  3. When an object to the class is created first system will search for a constructor with in the class,if there is no constructor available with in the class system will crate its own constructor and will assign in to the Data Fields.

Latest Walkins 2013(updated every day )



Hyderabd Walkins 2013

walkins in chennai2013-14

walkins in Chandigarh2013

Walkins In Mumbai 2013

pune In Walkins 2013

Kolkata in walkins 2013

Ahmedabad JOBS 2013

Banglore walkins

Dotnet jobs

09 10

0 comments:

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP