What is Constructor Overloading in C#?
In Constructor overloading, n number of constructors can be created for the same class. But the signatures of each constructor should always vary.
public class Student { public Student() { } public Student(String fullname) { } }
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
In Constructor overloading, n number of constructors can be created for the same class. But the signatures of each constructor should always vary.
need an explanation for this answer? contact us directly to get an explanation for this answer