C# Tips

Today's C# Quiz

Quiz

If a class does not have constructor, C# compiler implicitly add default constructor. What is the default constructor of B class of the sample below?

class A { }
class B : A { }

public B() {}
public B() : base() {}
public B() : A {}
public B() { this(); }

Tip

Answer