[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Inheritance

What is Redundant Inheritance ? Is it possible in C++ ?
0
shivag
Asked:
shivag
1 Solution
 
jbalagopCommented:
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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now