23
Answer (Choose 1 answer)
Given the Phone class below, what is the exact output of the following code?
public class Phone{
private int SerialNo;
private string Make; private string Model;
public string Info{get{return $"{SerialNo} {Make} {Model}";}
public Phone(): this (0, "Unknown", "Unknown")
public Phone(int SerialNo, string Make, string Model)this. SerialNo = SerialNo;this Make Make:this. Model = Model;}
}
public class Program
static void Main(string[] args)
Phone P1 = new Phone (456, "Oppo", "Reno");Console.WriteLine(P1.Info);}}
A. 456 Oppo Reno
B. (456) (Oppo} {Reno}
C. Compile-time error since Info is not a method.
D. Oppo Reno
Elt