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 98434

A methodology that enables a system to be modeled as a set of objects that can be controlled and manipulated in a modular manner

-1 votes

Clarify the Single Responsibility Principle

It all depends on the definition of responsibility and how that definition is going to impact maintenance of your code. Everything boils down to one thing and that is how your design is going to help …
AKS's user avatar
  • 391
0 votes

Subclassing to change default settings?

Yes, 2nd approach is better. Here are other options. You can go for prototype pattern. Extra thing which will be required is that timeline class should implement Clone able, and then depending on tim …
AKS's user avatar
  • 391
3 votes

Should we avoid object creation in Java?

I think your colleague must have said from the perspective of unnecessary object creation. I mean if you are creating the same object frequently then it is better to share that object. Even in cases w …
AKS's user avatar
  • 391
-1 votes

LSP vs OCP / Liskov Substitution VS Open Close

I would look at it from client's point of view. if Client is using features of an interface, and internally that feature has been implemented by Class A. Suppose there is a class B which extends class …
AKS's user avatar
  • 391
-1 votes

Explanation of the definition of interface inheritance as described in GoF book

For your 2nd question about interface inheritance: Interface inheritance is logically similar to class inheritance, but the real reason it is provided is for providing flexibility. For example, consid …
AKS's user avatar
  • 391