Tell what the derived class inherits or doesn''t inherit?, C/C++ Programming

Tell what the derived class inherits or doesn't inherit?

A: Inherits:

- All data member defined in the parent class (even though such members might not always be accessible in the derived class!)

- All ordinary member function of the parent class (though such members might not always be accessible in the derived class!)

- The similar initial data layout as the base class.

 Doesn't Inherit :

-  The base class's constructors & destructor.

- The base class's assignment operator.

- The base class's friends

 

Posted Date: 3/16/2013 2:54:44 AM | Location : United States







Related Discussions:- Tell what the derived class inherits or doesn''t inherit?, Assignment Help, Ask Question on Tell what the derived class inherits or doesn''t inherit?, Get Answer, Expert's Help, Tell what the derived class inherits or doesn''t inherit? Discussions

Write discussion on Tell what the derived class inherits or doesn''t inherit?
Your posts are moderated
Related Questions
Your task is to create a programming system for a ferry. The ferry transports passengers and vehicles (cars, busses, lorries and bicycles). The ferry has space for 200 passengers a

Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

superposition of two waves

Aim: To implement a program for bank account using static data type. Code: class bank {             static int acc_no;             int acc;             float b

C Program for CREATE MATRICES #include stdio.h> #include conio.h> void main() {           int a[10][10],rw=0,clm=0,i=0,j=0;           char s=' ';           c

#include #include #include #include #include class Employee { private: char *Name; //Set them as pointers... int IdNumber; char *Department; char *Position; public: voi

A string S is said to be "Super ASCII", if it contains the character frequency equal to their ascii values. String will contain only lower case alphabets (''a''-''z'') and the asci

A: auto: the default. Variables are created and initialized automatically while they are defined and destroyed at the ending of the block containing their definition. They are not

how to use a pointer variable?

Question 1 . Write a brief note on Aggregation Question 2 . Discuss briefly on constructors Question 3 . What are the important advantages of Inheritance? Question 4 .