MCQOPTIONS
Saved Bookmarks
| 1. |
Which statement will you add in the function fun() of class B, if it is to produce the output "Welcome to IndiaBIX.com!"? namespace IndiabixConsoleApplication { class A { public void fun() { Console.Write("Welcome"); } } class B: A { public void fun() { // [*** Add statement here ***] Console.WriteLine(" to IndiaBIX.com!"); } } class MyProgram { static void Main (string[ ] args) { B b = new B(); b.fun(); } } } |
| A. | <i class="csharp-code">base.fun();</i> |
| B. | <i class="csharp-code">A::fun();</i> |
| C. | <i class="csharp-code">fun();</i> |
| D. | <i class="csharp-code">mybase.fun();</i> |
| E. | <i class="csharp-code">A.fun();</i> |
| Answer» B. <i class="csharp-code">A::fun();</i> | |