

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 McqsMentor.com! ? namespace McqsMentorConsoleApplication { class A { public void fun() { Console.Write("Welcome"); } } class B: A { public void fun() { // [*** Add statement here ***] Console.WriteLine(" to McqsMentor.com!"); } } class MyProgram { static void Main (string[ ] args) { B b = new B(); b.fun(); } } } |
A. | Base.fun(), |
B. | A::fun(), |
C. | Fun(), |
D. | Mybase.fun(), |
Answer» B. A::fun(), | |