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
4
votes
4 answers

What is the difference between composition and aggregation?

What is the difference between composition and aggregation? can anybody give me a sample of this OOAD?
ariso
  • 1,433
  • 6
  • 21
  • 35
4
votes
2 answers

How should I abstract a collection of objects owned by another object?

In a system for managing vocational training, I have a CourseBase abstract class, which I decided on using in favour of an ICourse interface because I'd prefer to avoid duplicating implementation code for all classes derived from the hypothetical,…
ProfK
  • 49,207
  • 121
  • 399
  • 775
4
votes
2 answers

c# interface segregation principle example confusion

I'm fairly new to programming and i'm having trouble to understand how to apply effectively the principle showed in the following link (the ATM one): http://www.objectmentor.com/resources/articles/isp.pdf Basically it starts with a design that does…
4
votes
1 answer

Implementation View vs Physical View in 4+1 architectural view model

As I read about 4+1 architectural view model from the following link http://en.wikipedia.org/wiki/4%2B1_architectural_view_model What is the precise differences between Development view (implementation view) and Physical view?? PS:I do know that the…
user2019510
  • 1,460
  • 5
  • 16
  • 29
4
votes
2 answers

Database layer design

I have design level question in one of my project.I'm working on a project in which I need to fetch some objects using REST. Say for example fetch Customers and show it in a list. Following operations that can be done on Customer, Adding a…
RJR
  • 1,072
  • 2
  • 9
  • 21
4
votes
2 answers

Turning sequential cohesion into functional cohesion?

As described on this website, A module with (only) procedural cohesion is one supporting different and possibly unrelated activities, in which control passes from one activity to the next. Page-Jones gives an example of a module (whose name might…
x1886x
  • 1,217
  • 2
  • 12
  • 21
3
votes
3 answers

Company & Contacts Object Design Help

I am hoping that someone (or some people) could help us with a problem that we have wrangled with for a few days. How to organize our business objects given the attached diagram? We are looking for any assistance (ideas about where to or how to…
Steve Bargelt
  • 175
  • 1
  • 2
  • 6
3
votes
1 answer

Is there any specific number of output arrows from decision node and input arrows to the merge node in activity diagram?

How many output arrows can be connected to the decision node and how many input arrows can be connected to the merge node in an activity diagram? Is there any possibility of having more than two output arrows to the decision node and input arrows to…
3
votes
2 answers

Decorators and Virtual Methods

The decorator design pattern is a very good solution for extending a class functionality. For instance if I want pre and post processing methods on an existing class method I can create a decorator and override the existing method in the base class…
Hemanshu Bhojak
  • 16,972
  • 16
  • 49
  • 64
3
votes
2 answers

UML Ternary Association Implement java Code

ternary association is structural relationship specifies that Object of one thing connected to object of other two's I understand this relationship but I have no idea how to implement methods that shows association between these three classes. lets…
Sachithrra Dias
  • 185
  • 1
  • 2
  • 11
3
votes
1 answer

Is there any online material for real world examples of Object oriented design problems?

I want to practice solving Object oriented design problems in C++. Is there any online material with sample real world problems and solutions using design patterns ? I searched but i couldn't get online material. Pls help me.
bjskishore123
  • 6,144
  • 9
  • 44
  • 66
3
votes
0 answers

A Question about C++ / OOD Interview Questions

What is the most interesting or difficult question asked to you during an C++/OOD interview? What is the most interesting or difficult question you like to ask to a candidate during a C++/OOD interview? Edit: Updated the misleading…
Alok Save
  • 202,538
  • 53
  • 430
  • 533
3
votes
4 answers

Relationship between OOAD, UML. which knowledge is prerequisite?

I am trying to understand OOAD and UML. In this quest I came across some situations in which I felt if either of them are prerequisite for the other item. That is in some situations while reading OOAD i felt I should have prior knowledge of UML and…
CuriousMind
  • 8,301
  • 22
  • 65
  • 134
3
votes
3 answers

Design pattern for translating multiple data-formats from multiple sources to a single format

I work for a company that has multiple websites, and the existing infrastructure is...well, awful. Right now, each store has its own table that varies in structure. This is rapidly becoming a problem (if it wasn't already). So I need to find a way…
3
votes
1 answer

Do I need to split a large DTO?

I have a DTO with 30 attributes, some attributes would be added to it. Many other classes use this DTO, some classes use 10 to 20 attributes, some other class uses all 30 attributes. In one class, can I create a DTO which uses 10 attributes and rest…
satyanarayana
  • 265
  • 4
  • 14