Solved

Inheritance

Posted on 1998-10-16
1
282 Views
Last Modified: 2012-05-04
What is Redundant Inheritance ? Is it possible in C++ ?
0
Comment
Question by:shivag
1 Comment
 

Accepted Solution

by:
jbalagop earned 70 total points
ID: 1175308
If you have the same code that is defined in both derived classes then this is "redundant." One could replace it by defining this in the base class. Once this common code is defined in the base class then you do not have to worry about this data being stored in two derived objects (redundant).

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question