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
0
votes
1 answer

Is it possible to design a Class so that its instances only exist as items of a Collection?

I am trying to develop a conceptual model (object-oriented) of GPS-collected data. Usually, common classes are Track, which represents an ordered sequence of Trackpoints, and the class Trackpoint itself, which has properties such as latitude,…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
0
votes
1 answer

Can a managed bean extends a DTO

I have 2 classes (managed beans) in my business that of type X, the 2 classes merely have the same attributes except for 3 attributes, can i make a DTO contains all the attributes in the 2 beans and let them extends this DTO or i have to group the…
Eslam Hamdy
  • 7,126
  • 27
  • 105
  • 165
0
votes
1 answer

Appropriate way for business logic layer to deal with its neighbors?

Good morning, i have a use-case in my project that says that If the user isn't logged in to the application display a warning message to him and what determines if the user is logged in or not is a managed bean called loginPageCode, a class in the…
Eslam Hamdy
  • 7,126
  • 27
  • 105
  • 165
0
votes
4 answers

OOAD Design issue

I have two tables: tblCustomer, tblProduct: tblCustomer: Id: Integer, auto-increament Name: Varchar(30) .... tblProduct Id: Integer, auto-increament Name: Varchar(50) customerId: Integer .... And two classes: Customer,…
Bình Nguyên
  • 2,252
  • 6
  • 32
  • 47
0
votes
4 answers

Class Design issues

Currently, I have the following class design : AnimalHandler (A base class for all animals) TigerHandler extends AnimalHandler, LionHandler extends AnimalHandler, LeopardHandler extends AnimalHandler and so on. TigerHandler, LionHandler,…
M-D
  • 10,247
  • 9
  • 32
  • 35
0
votes
1 answer

VB .NET application re architecturing

I got to re-architect existing VB.NET application, current application is not developed considering Object Oriented Approach. so Customer find difficulty in maintaining it. Is there any tool to get the Class diagram from VB.NET source code? In JAVA…
Sumant
  • 496
  • 1
  • 6
  • 20
0
votes
1 answer

What's the correct name for the data structure (object) representing collection of GPS tracks

I want to implement, for personal use, an object representing a structured collection of GPS data. Currently, there are a lot of file formats to represent this data, all of them with some minor variation of this representation: A trackpoint would…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
0
votes
1 answer

Representing product specifications

I need to extend my domain model: products may have different specifications. E.g. motherboard specs are different from monitor specs. there are two entities: public class Product { public Guid Id { get; set; } public Category Category {…
lexeme
  • 2,915
  • 10
  • 60
  • 125
0
votes
1 answer

violation of SOLID principles

suppose we have a class structure where the code is divided in two parts lets us say computer science and business, now this also further divides in terms of country also, say Indian (cs or MBA) and US (cs or MBA). now let us consider a…
Anil Sharma
  • 558
  • 6
  • 18
0
votes
1 answer

Is this PowerBuilder stats generation code appropriately object-oriented?

I am working on refactoring an existing application written in PowerBuilder and Java and which runs on Sybase EA Server (Jaguar). I am building a small framework to wrap around Jaguar API functions that are available in EA Server. One of the classes…
svaratech
  • 241
  • 1
  • 4
  • 17
0
votes
2 answers

Best practice while representing a collection property doesn't have items

When collection property( of type "IList" or Array), should it be null when there are no elements OR should it be represented as an empty collection (i.e length is zero) e.g. public class Teacher { public List Students = null // to…
Ranganatha
  • 1,157
  • 14
  • 32
0
votes
2 answers

OOP Issue:How to convert an object into concrete object if the object is transfered via base object

My demo code is below: class Base { } class SubA:Base { private int propertyA; public int PropertyA { get{return propertyA} } } class SubB:Base { private string propertyB; public string PropertyB …
Aiping He
  • 491
  • 1
  • 6
  • 10
0
votes
4 answers

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…
Anonymous
  • 9,366
  • 22
  • 83
  • 133
0
votes
2 answers

uml-include or extend

I am trying to make a use case diagram for library management system. I have two actors admin and user. Now, the admin has three functions manageCategories (of books like history, geography etc.) manageUser and manageBooks.. What I am doing is…
Rebooting
  • 2,762
  • 11
  • 47
  • 70
0
votes
2 answers

How to design Uncategorized post for blog system

I have 3 tables: Post Category PostCategory (many to many relation table) It works fine when user select one or more categories for the post. But one scenario is that when the user select none of the categories, what should I do to manage these…
Edi Wang
  • 3,547
  • 6
  • 33
  • 51