Explain constructor.

Answer Posted / kamlesh sharma

constructors are special type of member functions of class
which is used to initilized a object

1. constructors are as same name of the class
2. don't have any return type
3. don't return any value


Types
1 default constructor
2 parametrized constructor and
3 copy constructures

constructors can be overload

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe how a .net application is compiled and executed

693


What is the task perform by clr?

749


What is append in c#?

635


Explain the working of serialization?

655


What is an abstract class c#?

669


What are the properties of a string class?

690


What is fcl in c#?

654


What are the types of constructors?

678


What are the types of comments in c#?

737


Define an assembly in .net?

725


What is the difference between method and constructor in c#?

675


How do I create a dbml file?

697


What is property in c#?

692


What will be the output of the following code?

690


What is object array in c#?

713