C# Programming - Constructors - Discussion

Discussion Forum : Constructors - General Questions (Q.No. 1)
1.
Which of the following statements is correct?
A constructor can be used to set default values and limit instantiation.
C# provides a copy constructor.
Destructors are used with classes as well as structures.
A class can have more than one destructor.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
18 comments Page 2 of 2.

Naviddya Batra said:   7 years ago
C# also provides the copy constructor. So, the answer should be a and b.
(1)

Yogesh said:   6 years ago
C# does not provide a copy constructor but you can create on your own.
(1)

Hema said:   1 decade ago
C# provides copy constructor also.

So, A and B both are correct.

Tulsi said:   1 decade ago
C# also provide copy construvtor so ans. Should be a & b.

Pravallika said:   9 years ago
C# provides copy constructor as it is a type of constructor.

Srikanth said:   1 decade ago
C# provides copy constructor also.
So ans should be A &B

Hema said:   1 decade ago
C# provides copy constructor also.
So ans should be A &B

Eugene Asare said:   3 years ago
A copy constructor is a C# programming constructor Right?


Post your comments here:

Your comments will be displayed after verification.