Convert the following class diagram to a java code and explain your implementation in a few words.
Fantastic news! We've Found the answer you've been seeking!
Question:
Convert the following class diagram to a java code and explain your implementation in a few words. We will need the following java classes : Vehicle, Owner , CarShow , overloaded methods and main class(That instantiates objects and invokes all methods).
Transcribed Image Text:
<<<Java Class>> street1: String street2: String Address main city: String state: String zipCode: String Address() Address(String String String String String) 1..1 Java Enumeration>> VehicleClassification ANTIQUE: VehicleClassification CLASSIC: Vehicle Classification MODERN: VehicleClassification of VehicleClassification) 1..1 <<Java Class>> Vehicle main 1..1 vehicle: String owner: String e manufacturer: String modelYear: int 0..n model String sublodet String a vehicleClassification: VehicleClassification isinsured: boolean Vehicle Vehicle(String, String, String, int, String, String. VehicleClassification, boolean) <<<Java Class>>> <<Java Class>> CarShow main carShowD: String <<Java Class>>> owner: String Owner main Car ShowOwner main firstName: String carShowID: String carShowTitle: String 0.01 O..n 0..n owner: String 0..1 carshowDate: Date lastName: String phoneNumber: String of CarShowOwner isSanctioned: boolean numYears: int CarShowOwner(String.String) CarShow CarShow(String.String,Date, boolean) address: Address FOwner) Owner(String String String String int.Address) <<<Java Class>> street1: String street2: String Address main city: String state: String zipCode: String Address() Address(String String String String String) 1..1 Java Enumeration>> VehicleClassification ANTIQUE: VehicleClassification CLASSIC: Vehicle Classification MODERN: VehicleClassification of VehicleClassification) 1..1 <<Java Class>> Vehicle main 1..1 vehicle: String owner: String e manufacturer: String modelYear: int 0..n model String sublodet String a vehicleClassification: VehicleClassification isinsured: boolean Vehicle Vehicle(String, String, String, int, String, String. VehicleClassification, boolean) <<<Java Class>>> <<Java Class>> CarShow main carShowD: String <<Java Class>>> owner: String Owner main Car ShowOwner main firstName: String carShowID: String carShowTitle: String 0.01 O..n 0..n owner: String 0..1 carshowDate: Date lastName: String phoneNumber: String of CarShowOwner isSanctioned: boolean numYears: int CarShowOwner(String.String) CarShow CarShow(String.String,Date, boolean) address: Address FOwner) Owner(String String String String int.Address)
Expert Answer:
Answer rating: 100% (QA)
Heres the Java code implementation based on the provided class diagram Addressjava public class Address private String street private String city priv... View the full answer
Related Book For
Systems analysis and design in a changing world
ISBN: 978-1423902287
5th edition
Authors: John W. Satzinger, Robert B. Jackson, Stephen D. Burd
Posted Date:
Students also viewed these programming questions
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Troyce receives a gift of a passive activity from a parent whose basis was $60,000. Suspended losses related to the activity are $18,000. Troyce will be allowed to offset the $18,000 suspended losses...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
It is clear that Jaguar practices responsibility toward the environment. Using your knowledge gained from this Jaguar case study and further research, provide five (5) examples of how Jaguar is...
-
Maria is opposed to the idea of same-sex marriage. In a recent conversation in the school cafeteria, Maria argues, "If homosexuals are allowed to marry, then why not allow polygamy or other kinds of...
-
N. Y. Lottery Numbers Come Up 911 on 9/11 was the headline of an article that appeared in the San Francisco Chronicle (September 13, 2002). More than 5,600 people had selected the sequence 911 on...
-
If a patient receives a series of jolts, the resistance of the torso may increase. How does such a change affect the initial current and the time constant of subsequent jolts? A. The initial current...
-
Lansing, Inc. provides the following information for one of its department's operations for June (no new material is added in Department T): WIP inventory-Department T Beginning inventory (15,000...
-
In each part following, either prove or disprove the converse of the given claim. If you prove the converse, indicate whether your proof is direct, indirect, by contradiction, or something else. If...
-
Triumph's Companies, a home improvement store chain, reported the following summarized figures: E (Click the icon to view the income statement.) E (Click the icon to view the balance sheets.)...
-
IP A 2.6 kg block slides with a speed of 2.2 m/s on 4 Part A a frictionless horizontal surface until it encounters a spring. If the block compresses the spring 5.6 cm before coming to rest, what is...
-
Computer science question about fork() function. Hello, can you please solve both (a) and (b) of the below question? They are both related and I cant think of five cases or dont know what is tree...
-
A composite shaft consists of a steel rod 60 mm diameter surrounded by a closely fitted brass tube shown in Fig. 3. When a torque of 1000 Nm is applied to the overall shaft, it will be shared by the...
-
Why are department meetings important? What are the skills I learn from department meetings? What further reading should be done to improve meeting skills?
-
John borrows 50000 dollars from a bank that charges interest at an annual rate of 6 percent, compounded monthly. Calculate the monthly payment that John would have to make in order for the loan to be...
-
Find the status of the CF, PF, AF, ZF and SF after the execution of the following instructions? MOV DI, 045AH MOV DX, 2FE7H MOV [DI], DX ADD [DI), DX O a. 1, 0, 1, 1, 0. O b. 0, 1, 0, 1, 1. O c. 0,...
-
In Problems, solve each system of equations. x + 2y + 3z = 5 y + 11z = 21 5y + 9z = 13
-
You are going on your first consulting assignment to do systems analysis. Your client does not like to pay to train new, inexperienced analysts. What should you do to appear competent and well...
-
Using the system sequence diagrams you developed in Chapter 7, develop a list of inputs and outputs, along with the necessary data fields, for the system.
-
The event table for RMO is shown in Figure (a). Based on this event table, the use case diagram in Figure (b) was developed. The chapter illustrates detailed models (activity and system sequence...
-
Read the following extract from an article about a business venture of the Bob Jane company. Is prudence still a virtue? The concept of prudence and its use, or non-use, in financial reporting has...
-
Your friend Ninette Nobis was a tourism management student when you were at university together and is now a manager of an upmarket hotel in the Exquisite Hotels chain. Because of the impact of an...
-
Transactions affecting Bradford Ltds accounts receivable for the year ended 30 June are presented below. On 1 July of the previous year, the opening balance of the Allowance for Doubtful Debts...
Study smarter with the SolutionInn App