ooad

Need some explain with OOAD "is a" hierarchy.

I have purchase Object-Oriented Analysis and Design with Applications, at page 64 paragraph 2 has explain about "is a" hierarchy like below. In terms of its “is a” hierarchy, a high-level abstraction is generalized, and a low-level abstraction is specialized. Therefore, we say that a Flower class is at a higher level of abstraction t...

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 books. I am looking for a book similar to "Structure and interpretation of computer progr...

Looking for some OOAD advice for Reporting

I have the need to create an arbitrary amount of reports in many different file formats. Most of the formats I am able to use Smarty to template the output. However, outputting to Excel and PDF complicate things and require the use of FPDF or TCPDF and PHPExcel. I am trying to figure out the best way to organize my classes via one or ...

What's a good metaphor for Dependency Injection?

A metaphor that stuck with me when programming non-DI systems is "a person playing with his/her toys". A person being an object and the person's toys being anything that object creates, stores, initializes, and manipulates. The toys can dispatch events when they reach a certain state, but they know nothing about the person using them; th...

Can anyone suggest good books like Craig Larman for OOAD?

Hi, I am looking for good books like: Applying UML and Patterns: An Introduction to Object-Oriented Analysis and Design and Iterative Development which should not focus too much on UML notations but on how to analysis and design software in general. Any recommendations? ...

What's is the difference between include and extend in use case diagram?

What's is the difference between include and extend in a use case diagram? ...

Why do we use Interface? Is it only for Standardization?

Why do we use Interface? Is it only for Standardization? ...

What's the UML syntax for multiplicity? ( inside the class box )

I know it is possible to specify the multiplicity within the same class box, without having to draw the link to another class. My question is, Where should the multiplicity go, after the name or after the type? Is it: visibility name multiplicity : type as + clients [0..n] : Client or visibility name : type multiplicity as + ...

Encapsulate Use Cases in a software

I usually write use cases for all the software that I develop. For each use case I generally write a controller which directs the flow (implements a use case). I have recently started developing web apps using Asp.net MVC. One of the best practices of Asp.net MVC is to keep very less logic in the controllers. I am not able to figure ou...

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 implement a factory of a singleton, but that I do not know how to come up with a robust OO design....

Realising Class Diagram for the problem

I need to develop a certain sw module which outputs the data in the following format Main object and related object and Quantity i.e Desktop Computer ---- CPU 1x ---- Mouse 1x ---- KB 1x ---- Monitor 1x ---- Speakers 2x ...

Class design help needed

I need to develop a certain sw module which outputs the data in the following format Main object and related object and Quantity i.e Desktop Computer ---- CPU 1x ---- Mouse 1x ---- KB 1x ---- Monitor 1x ---- Speakers 2x This shall mean that for a Desktop Computer object, there shall be 1 CPU,1 Mouse,1 Keyboard,1 Monitor,2 speakers ...

OO Design question

I have a two types of products - Discounted (10% Disc) and NonDiscounted (0%) Each of these can be either LocalProduct / ExportableProduct with export one attracting a 15% sales tax. What is the best way to model this scenario. Me being absolute newbie to S/W design, I have very limited ideas 1. To have 4 different Product sub types 2...

Dispose the singleton object in .NET

Hello All I have two classes ClassA and ClassB both having a reference to a singleton object ClassHelper. My question is how should i dispose the singleton object once im done using both the ClassA and ClassB Edit: public ClassA { CHelper obj; public ClassA() { obj = obj.GetInstance("Initialise"); obj.CallFuncA(); } }...

What does "program to interfaces, not implementations" mean?

One stumbles upon this phrase when reading about design patterns. But I don't understand it, could someone explain this for me? ...

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#. ...

help me to choose between two designs

// stupid title, but I could not think anything smarter I have a code (see below, sorry for long code but it's very-very simple): namespace Option1 { class AuxClass1 { string _field1; public string Field1 { get { return _field1; } set ...

Method Calling Public/Private Members or Methods Best Practice - C#.NET

What is the best practice for calling members/fields from a private method and public method? Should the private method always call private fields or should they call the public members? private string _name; public string Name { get {return _name; } set { _name = value; } } public void DoSomething() { _doSomething(); } pri...

how will Contained class call member function of containing class - Composition in C++

Hi, This is a general design question from C++ perspective. I have a container class which contains objects of 2 other classes. From container class we can call methods of the contained class object "as we have handle to the contained class object" e.g. objContainedClass1->SomeMthod(); But I want to know how would the contained class ...

How can I create factory? Client can set data for methods which are not in defined in interface?(Design Problem)

Hello, I am having little design problem: I have one factory which will create object of with one type or another type. But my client requirement is to give(feed) the data(via setter methods) from outside world to the concrete class of type-1 not for type-2. If I place these setter methods in interface, those need to be implemented for...