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();
Which C# statement should be added in function a() of class y to get output “i love csharp”?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which C# statement should be added in function a() of class y to get output “i love csharp”?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!