class baseclass{ protected int a = 20;}class derived : baseclass{ int a = 10; public void math() { /* add code here */ } }
a) Console.writeline( a + ” ” + this.a);
b) Console.Writeline( mybase.a + ” ” + a);
c) console.writeline(a + ” ” + base.a);
d) console.writeline(base.a + ” ” + a);
Select the statement which should be added to the current C# code to get the output as 10 20?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Select the statement which should be added to the current C# code to get the output as 10 20?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!