Skip to main content

Explore our questions

5 votes
4 answers
2k views

If class B extends A, can we say that B depends on A?

0 votes
1 answer
194 views

Using the objects retrieved at the time of request validation

16 votes
7 answers
43k views

What is the better way to escape from too many if/else-if from the following code snippet?

1 vote
1 answer
821 views

Can a class factory also save the object to a database?

4 votes
1 answer
5k views

Where should variables be declared

62 votes
8 answers
28k views

LSP vs OCP / Liskov Substitution VS Open Close

10 votes
2 answers
12k views

Static factory method in base class

7 votes
2 answers
397 views

Difficulty making this class open-closed

6 votes
4 answers
1k views

How to avoid init methods when 2 objects need the reference of each other?

39 votes
7 answers
9k views

Clarify the Open/Closed Principle

4 votes
6 answers
2k views

The ID of an object is null at start. Does that make the object state invalid and violate encapsulation?

2 votes
2 answers
3k views

Module with globals or Class with attributes?

3 votes
3 answers
235 views

Handle hierarchical relationships between large number of enums

25 votes
15 answers
18k views

How far can you push Object Oriented Programming?

Browse more Questions