 
             
            Inheritance - Programming
| Q1: Which statement will you add in the function fun() of class B, if it is to produce the output 'Welcome to AptitudeCrack.com!'?
namespace AptitudeCrackConsoleApplication
{ 
    class A
    {
        public void fun()
        {
            Console.Write('Welcome');
        } 
    } 
    class B: A
    {
        public void fun()
        {
            // [*** Add statement here ***]
            Console.WriteLine(' to AptitudeCrack.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();  E A.fun();  ANS:A - base.fun(); No answer description is available. Let's discuss. | 
 
             
                            
                                    For help Students Orientation 
                                    Mcqs Questions
                                
                                One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.
 
                            