Page 1 of 1

Which C# statement should be added in function a() of class y to get output “i love csharp”?

Posted: Wed Jul 13, 2022 7:56 pm
by answerhappygod
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();