Search Results
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 |
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.
0
votes
2
answers
1k
views
How to concretize a return type when inheritance is used?
What is the right way to solve this issue so that the program perceives the return value as a ModelOne (without an explicit use of annotation on the returned variable) while maintaining the use of inheritance …
0
votes
2
answers
526
views
How to solve an issue when a decorator needs variables from the base class?
I have a service class that does some magic. I want to introduce a new type of functionality - raise an event. I am absolutely sure that decorator pattern is great for this scenario. The problem is th …
1
vote
Accepted
How to solve an issue when a decorator needs variables from the base class?
Filip has guided me in the right direction. My function that was doing magic, was doing more than it should. By abstracting out the responsibilities the code wrote itself in a way that has solved the …