Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


OO concepts

Posted on 2005-03-14
Medium Priority
Last Modified: 2010-03-31
Hi All.

Im a java beginner and am embarking on a project to build some kind of app to collect car data.

Im looking into a building a class diagram first , but im not sure what parts of the info belong to which classes

Theres some info here of the car data collected


but im trying to figure out the classes i'd be utilising.

Im sure that there will be a Car class , but would the owners verdicts be a part of an OwnersVerdict.class or something more obscure like a Person.class since all this info is collected from questionairre recipients/respondents?

theres also Evaluation information, but this info doesnt actually BELONG to the car its just an aspect of it so would it be or would it be some aggregation of the collected info?

Hope this question isnt too vague and someone can point me in the right direction!


Question by:metalmickey
  • 4
  • 2
LVL 37

Expert Comment

ID: 13533456
>> Im sure that there will be a Car class, but would the owners verdicts be a part of an OwnersVerdict.class
Sounds OK to me.
class Car having a member ownersVerdict of type OwnersVerdict

public class Car {

    // Data members
    OwnersVerdict ownersVerdict;

LVL 86

Expert Comment

ID: 13533461
You would have a larger enclosing class which related the entities. Class Car should be probably be related throuhg a one-to-many collection relationship to a an Owner(depending on amount of 'owner' info actually held) or an OwnerVerdict class
LVL 86

Expert Comment

ID: 13533470
>>class Car having a member ownersVerdict of type OwnersVerdict

Not such a good idea having such a tight coupling between the two (see above)
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Author Comment

ID: 13533529
Thanks for the Quick response,
ive just checked and this data is not going to be aggregated or queried, which makes my task a lot easier.

So essentially i'll have a Car class and all the data are to be considered as attributes of the car. Which i think kind of answers my own Q. Although id still be intersted in any views on how to keep the Verdicts/Evaluation info together.

Thanks for your time.
LVL 86

Accepted Solution

CEHJ earned 375 total points
ID: 13533599
>>this data is not going to be aggregated or queried

Irrespective of data usage, if you have any relation between Car and Owner//Owner verdict, the previous comments apply

Author Comment

ID: 13572983
Thanks CEHJ

Ive followed your advice and broken down the information into groups of small constituents and then am anaylsing thier relationships with other classes.

I think doing it this way will allow be to understand the data model in greater detail, and then discount relationships that are of no use to me.

LVL 86

Expert Comment

ID: 13573017

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question