C Sharp (C#) - Classes and Objects
Consider the class below:
What is the effect of the parameterless constructor in this class?
class Employee {
public string Name;
public Employee(string name) {
this.Name = name;
}
public Employee() : this("No Name") {}
}What is the effect of the parameterless constructor in this class?
