0

Can we have more than one constructor for the same class in C#?

9th Oct 2020, 5:29 AM
Rohan Agarwal
Rohan Agarwal - avatar
1 Odpowiedź
+ 4
Yes we can, but only on condition that each one of them should have different signatures that is :- different type of arguments or different number of arguments or different order of arguments. this is known as constructor overloading. search online for more info about it.
9th Oct 2020, 5:45 AM
Arsenic
Arsenic - avatar