Questions tagged [ooad]

24 questions
19
votes
3 answers

Relational databases and iterative development

In many approaches to software development like agile methodologies, Domain-Driven Design and Object Oriented Analysis and Design, we are encouraged to take one iterative approach to development. So we are not supposed to get our domain model done…
user1620696
  • 4,817
  • 7
  • 31
  • 46
7
votes
2 answers

Should Modelling Document Analysis?

I use UML I, like most (I think), use UML as my main diagramming toolset. UML is clear and useful for representing OOP and has sufficiently diverse diagrams that there is something for whatever area you are modelling; whether it be class trees,…
user174739
7
votes
2 answers

Strategy Pattern Implementation

I have to generate a code that will send through SMS or Email to implement the One Time Password (OTP) requirement of our client. I just finished creating the design using strategy pattern, . . This it the first time I've used strategy pattern in…
fuzzy28
  • 171
  • 4
7
votes
7 answers

Inheritance using non-abstract base class

This post is based on the question https://stackoverflow.com/questions/49002/prefer-composition-over-inheritance/11758048#comment15634305_11758048. Some people said - check whether there is “is-a” relationship. If it is there use inheritance. What I…
LCJ
  • 977
  • 2
  • 13
  • 23
6
votes
1 answer

C++ : Association, Aggregation and Composition

I'm beginning to study OOAD and I'm having difficulty finding a C++ code example that'd illustrate how Association, Aggregation and Composition are implemented programmatically. (There are several posts everywhere but they relate to C# or java). I…
Talha5389
  • 169
  • 1
  • 1
  • 2
5
votes
3 answers

How to decide the granularity for RESTful APIs

Most of us know SOLID, and over the years have understood how useful it can get when we need to change. Based on S & I parts of SOLID and from experience I used to design my HTTP RESTful services as fine-grained as I could. For example, in a simple…
Saeed Neamati
  • 18,142
  • 23
  • 87
  • 125
5
votes
2 answers

Does having many duplicated methods and deep inheritance hierarchies in GUI APIs (Java Swing, Android SDK) violate the SOLID design principles?

For those unfamiliar with the SOLID principles you can start reading here: Wikipedia article. However, most of my understanding comes from: http://www.objectmentor.com/resources/publishedArticles.html Regardless, it seems that every GUI interface I…
4
votes
1 answer

Object-Oriented Analysis - Peter Coad / Edward Yourdon Notation

In the object-oriented analysis approach defined in Object-Oriented Analysis by Peter Coad / Edward Yourdon (Yourdon Press, 1991), a method is provided for analysing and modelling complex problem domains using "subjects". A subject is a group of…
user174739
3
votes
2 answers

Efficient way to Decouple classes in class design

I am working on a class design question - design a simple grocery store with a self-checkout system I am a beginner After briefly jotting down requirements, I started with the Product class as follows - class Product{ String barcode; int…
3
votes
4 answers

When are Description classes useful

A book called 'Applying uml and patterns by craig larm' emphasized the use of Description classes in software designing. For example, the book pointed out why putting attributes such as description, price etc in a separate class ProductDescription…
Maak
  • 67
  • 5
3
votes
2 answers

How to get OOAD and Design Patterns hands-on experience in C#?

I have read the concepts and practiced some examples on OOAD and Design Patterns. But when I was asked to implement the singleton pattern in a little bit different manner, I was unable to do it and failed to reach my goal. I think I need some more…
Dinesh
  • 131
  • 5
2
votes
4 answers

What are the private method responsibilities when we design class in OOP?

In different design books I have read that First identify the purpose of class (abstraction). Class should only do one thing (SRP). methods are defined as responsibility of the class. As per my understanding public methods handle the…
2
votes
2 answers

How to avoid god controller classes and keep single responsibility principle?

The task is to make a migrator from Old DB to New DB using OOP Single Responsibility Principle. My problem is how can I make this without making the controller a God Class or breaking the single responsibility. I've thought of two methods of…
2
votes
1 answer

Object Oriented Analysis and Design workflow for developer working alone

Studying about OOAD I've found a simple workflow based on five steps. I don't work with a team, so what I'm interested in is a workflow that can be used by a developer working alone. The workflow I found is: Gather requirements for the…
1
vote
1 answer

Designing a generic graph

I am looking at designing a Graph class, that should work for both lists and matrix. For ex: something like, class Graph { public: virtual ~Graph() = 0; virtual bool AddEdge(int src, int dest)=0; virtual int Size() = 0; }; Now, I can…
vinit
  • 131
  • 3
1
2