LogiQuest
Back to Constructors
2

What is the output of the following program?

Console.WriteLine(new P().V);
class P {
    public int V;
    public P() : this(7) { }
    public P(int v) { V = v; }
}
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.