Monday, July 29, 2019

Draw class diagram for the situation Research Paper

Draw class diagram for the situation - Research Paper Example Visibility can be private, public or protected. In Jim Smith’s dealership situation as presented, there are four classes involved: Manufacturer, Car, Buyer and Contact information. Each class has its own attributes, the car manufacturer has both name and contact information as its attributes, the car has list price, buying price, model name and model series, the buyer has a name, car bought, buying price and address and finally contact information with both address and phone number as attributes. All the attributes of all the classes should be private hence the negative sign before the attributes. Association between the classes is an important part of class diagrams and is as follows according to the situation presented in Jim Smith’s dealership: A car manufacturer can sell one or many cars to the dealership, a buyer can buy one or many cars from the dealership, a buy lives at one specific

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.