Questions tagged [ooad]

Object Oriented Analysis and Design - use this tag for questions related to Object Oriented programming. Also include language tags such as java where appropriate.

Programming paradigm where entities are described as objects with features and capabilities. The main advantage of this approach is the ability to reuse and extend functionality of objects.

See also: Wikipedia entry on OOAD

256 questions
15
votes
10 answers

OOAD book recommendation: from theory to practice

I am on the quest to be a good OO-developer. OO intrigues me, because I understand the patterns, know why composition gives you more flexibility then inheritance, and more of such wisdom. However, I came to the conclusion that I know how to…
Exception e
  • 1,864
  • 3
  • 19
  • 33
14
votes
7 answers

Abstract base class to force each derived classes to be Singleton

How do I make an abstract class that shall force each derived classes to be Singleton ? I use C#.
this. __curious_geek
  • 42,787
  • 22
  • 113
  • 137
13
votes
12 answers

How to develop *real life* oop skills?

I've been studying OOP for quite a while now and I have a good grasp of the theory. I read the Head First book on OOP and, while it reinforced a lot of the theory, I found the case studies to be somewhat trivial. I find that I'm applying OOP…
Rob Sobers
  • 20,737
  • 24
  • 82
  • 111
12
votes
8 answers

What is the difference between Design and Architecture?

These two terms are very diffused. How exactly do they differ? Is there any real life example or scenario that can elaborate this difference?
g.revolution
  • 11,962
  • 23
  • 81
  • 107
12
votes
4 answers

Business rules that are valid for specific time span – how to manage in an orderly manner

I just started working for a government agency and I have come across an interesting problem: business rules depend on legislature and as such they have to respect the exact time periods that legislature has been active. To give you an example, if…
Dan
  • 11,077
  • 20
  • 84
  • 119
11
votes
10 answers

Is there a benefit to having both an abstract class and an interface?

I started out with a generic interface called ILogin. The interfaces requires that you implement two properties: UserID and Password. I have many login-type classes that implement this interface. As my project grew and grew, I found that many…
Rob Sobers
  • 20,737
  • 24
  • 82
  • 111
10
votes
8 answers

Object oriented design resources

I am looking for good resources (books/web sites) for learning object oriented design. Every resource that I find are tutoring me more on UML and RUP instead of OO design. Head first book's sheer repetition is making me not want to read any of their…
msvcyc
  • 2,569
  • 4
  • 24
  • 30
9
votes
2 answers

“Do not use Abstract Base class in Design; but in Modeling/Analysis”

I am newbie to SOA though I have some experience in OOAD. One of the guidelines for SOA design is “Use Abstract Classes for Modeling only. Omit them from Design”. The use of abstraction can be helpful in modeling (analysis phase). During analysis…
LCJ
  • 22,196
  • 67
  • 260
  • 418
8
votes
2 answers

Difference between Generalization and inheritance with suitable example. OOAD

Studying about Generalization and inheritance making me confuse, both gives the same meaning as if something is being inherited..but cant figure out the actual difference.
Pratik Lalan
  • 93
  • 1
  • 1
  • 6
8
votes
1 answer

Which collection class in java breaks the S.O.L.I.D Principle?

I was asked in an interview about which collection breaks the S.O.L.I.D principle?? Can anyone explain which one is it and how?
java newbie
  • 407
  • 4
  • 11
8
votes
4 answers

DDD - Duplication between service layer and repositories

I've worked on several applications that try to adhere to DDD principles, I noticed that we end up with situations where there is duplication between the Service Layer and the repositories that feels like a code smell. For most of the operations in…
kabaros
  • 5,083
  • 2
  • 22
  • 35
7
votes
9 answers

OO Design, open/closed principle question

I've been thinking about this object oriented design question for a while now and have unable to come up with a satisfactory solution, so thought I'd throw it open to the crowds here for some opinions. I have a Game class that represents a turn…
JonC
  • 809
  • 8
  • 18
7
votes
10 answers

How do I use composition with inheritance?

I'm going to try to ask my question in the context of a simple example... Let's say I have an abstract base class Car. Car has-a basic Engine object. I have a method StartEngine() in the abstract Car class that delegates the starting of the engine…
Rob Sobers
  • 20,737
  • 24
  • 82
  • 111
7
votes
6 answers

As OOAD is to OOP what is the equivalent for functional programming?

I've recently forayed into the world of functional programming (FP) and am wondering how to "think functionally" for even moderately sized applications? Especially w.r.t. the analysis and design of FPs. With OOP we're trained to think in terms of…
PhD
  • 11,202
  • 14
  • 64
  • 112
7
votes
2 answers

How to use Subsetted Property in UML?

Subsetted Properties are widely used in UML specification diagrams. What are the semantics (meaning) of a Subsetted Property? How does one use a UML Subsetted Property? A real-world example would be great Edit: the following screenshot from UML…
Chriss
  • 1,011
  • 1
  • 13
  • 22
1
2
3
17 18