C Sharp (C#) - Inheritance
Find the error in this constructor chaining code:
class Example {
public Example(int x) {
Console.WriteLine(x);
}
public Example() : this() {
Console.WriteLine("Default");
}
}
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions