1. What is the meaning of base class in C++





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->In a class of 60 students, 55% are boys. The number of girls in the class is :....
QA->The code name of Indian Navy’s top secret naval base for submarine ?....
QA->Where is the recently commissioned naval base, INS Sardar Patel, located?....
MCQ-> DIRECTIONS for questions:These questions are based on the situation given below:Recently, Ghosh Babu spent his winter vacation on Kyakya Island. During the vacation, he visited the local casino where he came across a new card game. Two players, using a normal deck of 52 playing cards, play this game. One player is called the Dealer and the other is called the Player. First, the Player picks a card at random from the deck. This is called the base card. The amount in rupees equal to the face value of the base card is called the base amount. The face values of Ace, King, Queen and Jack are ten. For other cards, the face value is the number on the card. Once, the Player picks a card from the deck, the Dealer pays him the base amount. Then the dealer picks a card from the deck and this card is called the top card. If the top card is of the same suit as the base card, the Player pays twice the base amount to the Dealer. If the top card is of the same colour as the base card (but not the same suit) then the Player pays the base amount to the Dealer. If the top card happens to be of a different colour than the base card, the Dealer pays the base amount to the Player. Ghosh Babu played the game 4 times. First time he picked eight of clubs and the Dealer picked queen of clubs. Second time, he picked ten of hearts and the dealer picked two of spades. Next time, Ghosh Babu picked six of diamonds and the dealer picked ace of hearts. Lastly, he picked eight of spades and the dealer picked jack of spades. Answer the following questions based on these four games.If Ghosh Babu stopped playing the game when his gain would be maximized, the gain in Rs. would have been
 ....
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.....
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->interface Base { boolean m1 (); byte m2(short s); } which two code fragments will compile? interface Base2 implements Base {} abstract class Class2 extends Base { public boolean m1(){ return true; }} abstract class Class2 implements Base {} abstract class Class2 implements Base { public boolean m1(){ return (7 > 4); }} abstract class Class2 implements Base { protected boolean m1(){ return (5 > 7) }}....
MCQ->What will be the output of the following program? #include<iostream.h> class Base { public: int S, A, M; Base(int x, int y) { S = y - y; A = x + x; M = x x; } Base(int, int y = 'A', int z = 'B') { S = y; A = y + 1 - 1; M = z - 1; } void Display(void) { cout<< S << " " << A << " " << M << endl; } }; class Derived : public Base { int x, y, z; public: Derived(int xx = 65, int yy = 66, int zz = 67): Base(x) { x = xx; y = yy; z = zz; } void Display(int n) { if(n) Base::Display(); else cout<< x << " " << y << " " << z << endl; } }; int main() { Derived objDev; objDev.Display(-1); return 0; }....
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