Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 130377

Inheritance is a way to reuse code of existing objects, or to establish a subtype from an existing object, or both, depending upon programming language support.

13 votes
4 answers
4k views

Parallel hierarchies - partly same, partly different

Solution I - Tease Apart Inheritance Fowler's Tease Apart Inheritance doesn't seem to do the job here, because there is some discrepancy between the two parallels. …
Izhaki's user avatar
  • 381
1 vote

Parallel hierarchies - partly same, partly different

In an article titled Design Patterns for Dealing with Dual Inheritance Hierarchies in C++, Uncle Bob presents a solution called Stairway to Heaven. … It's stated intent: This pattern describes the network of inheritance relationships that is needed when a given hierarchy must be adapted, in its entirety, to another class. …
Izhaki's user avatar
  • 381