Which C# statement should be added in function a() of class y to get output “i love csharp”? [code] class x { public void a()

Lan Anh

New member
Which C# statement should be added in function a() of class y to get output “i love csharp”?
Code:
 class x
 {
     public void a()
     {
         console.write("bye");
     }
 }
 class y : x
 {
     public void a()
     {
     /* add statement here */
         console.writeline("  i love csharp ");
     }
 }
 class program
 {
     static void main(string[] args)
     {
         y obj =  new obj();
         obj.a();
     }
 }
A. x.a();
B. a();
C. base.a();
D. x::a();
 

Tìm kiếm

Back
Top