1. A function in a derived class that has the same name as a function in the parent class _____





Write Comment

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Tags
Show Similar Question And Answers
QA->There are 50 students in a class. In a class test 22 students get 25 marks each, 18 students get 30 marks each. Each of the remaining gets 16 marks. The average mark of the whole class is :....
QA->In a class of 20 students the average age is 16 years.If the age of the class teacher is added to that of students,the average age of the class becomes 17 years.What is the age of the teacher?....
QA->The name Idukki has been derived from....
QA->A name derived from father's name.....
QA->Whichcountry has become the first country in the world to legally offer“three-parent baby” fertility treatments?....
MCQ-> In the following passage some of the words have been left out. Read the passage carefully and choose the correct answer to each question out of the four alternative and fill in the blanksA though we can _____(I)
 _____ the _____(II)_____ bodies of our solar system _____(III)_____ a telescope, it is only _____(IV)_____ who can _____(V)_____ the depths of outer space. It is reported that they have seen _____(VI)_____ galaxies, stars taking _____(VII)_____ and _____(VIII)_____ black holes’. They say that the deeper they look _____(IX)_____ the universe, the more they know _____(X)_____ the universe originated.(I)
 ....
MCQ->What will be the output of the following program? #include<iostream.h> class Base { int x, y; public: Base() { x = y = 0; } Base(int xx) { x = xx; } Base(int p, int q = 10) { x = p + q; y = q; } void Display(void) { cout<< x << " " << y << endl; } }objDefault(1, 1); class Derived: public Base { Base obj; public: Derived(int xx, int yy): Base(xx, xx + 1) { } Derived(Base objB = objDefault) { } }; int main() { Derived objD(5, 3); Derived ptrD = new Derived(objD); ptrD->Display(); delete ptrD; return 0; }....
MCQ->Which of the following statements is correct about the C#.NET program given below? namespace IndiabixConsoleApplication { class Baseclass { int i; public Baseclass(int ii) { i = ii; Console.Write("Base "); } } class Derived : Baseclass { public Derived(int ii) : base(ii) { Console.Write("Derived "); } } class MyProgram { static void Main(string[ ] args) { Derived d = new Derived(10); } } }....
MCQ->If a base class and a derived class each include a member function with the same name, the member function of the derived class will be called by an object of the derived class....
MCQ->Which of the following statements are correct about Inheritance in C#.NET? A derived class object contains all the base class data. Inheritance cannot suppress the base class functionality. A derived class may not be able to access all the base class data. Inheritance cannot extend the base class functionality. In inheritance chain construction of object happens from base towards derived.....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions