This section of our 1000+ C# multiple choice questions focuses on constructors in class in C# Programming Language. 1. Number of constructors a class can define is ?
A. 1
B. 2
C. Any number
D. None of the mentioned
Answer:A
This section of our 1000+ C# multiple choice questions focuses on constructors in class in C# Programming Language. 1. Number of constructors a class can define is ?
A. 1 B. 2 C. Any number D. None of the mentioned
Explanation: A constructor is a simple method which has the same name as the class and hence used to create object of a class. C# class can define any number of constructors. Every class contains a default constructor.