C# Programming - Constructors - Discussion
Discussion Forum : Constructors - General Questions (Q.No. 1)
1.
Which of the following statements is correct?
Discussion:
18 comments Page 1 of 2.
Eugene Asare said:
3 years ago
A copy constructor is a C# programming constructor Right?
Yogesh said:
6 years ago
C# does not provide a copy constructor but you can create on your own.
(1)
Naviddya Batra said:
7 years ago
C# also provides the copy constructor. So, the answer should be a and b.
(1)
Pravallika said:
9 years ago
C# provides copy constructor as it is a type of constructor.
David said:
10 years ago
Constructors is automatically invoked when the class objects is initiated.
Hema said:
1 decade ago
C# provides copy constructor also.
So, A and B both are correct.
So, A and B both are correct.
Arul said:
1 decade ago
C# provide a copy constructor and C# class have more than one constructor. So answer B & D.
Bhavani said:
1 decade ago
C# doesn't provide copy constructor, every class have implicit constructor.
Neeraj Sharma said:
1 decade ago
C# doesn't provide a copy constructor for objects, but you can write one yourself.
RAJEEV RANJAN KUMAR(RAJU) said:
1 decade ago
C# provides three types of constructor:
1st 1 is: Default Const.
2nd 1 is: Param Const.
And 3rd 1 is: Copy Const.
So Answer Should be A & B.
1st 1 is: Default Const.
2nd 1 is: Param Const.
And 3rd 1 is: Copy Const.
So Answer Should be A & B.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers