Solved

Inheritance

Posted on 1998-10-16
1
280 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now