K
Multiple choices 49/50
(Choose 1 answer)
What will be the output of the following program?
A. Compile time error
B. My name is Steve and age is 0
C. My name is Steve
D. Run time error
class Person
{
public void Introduction(){
Console.WriteLine("I am a person.");}
public void Introduction(string name) { Console.WriteLine("My name is } name);
public void Introduction(string name, int age= 0){
Console.WriteLine($"My name is (name) and age is {age}");
}
Next
}
Person p= new Person();p.Introduction("Steve");
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
28 29 30 31 32 33 34 35 36
43 44 45 46 47 48
50