| ParkingLot | lot id: String | address: String | capacity: integer | entry(Car): void i tostring(): String | | CarType <> | | COMPACT | SUV | Car | permit: String ! permit expiration: LocalDate"* | license: String | type: CarType | owner: customer id | tostring(): String | Customer customer id: String | name: String | address: String I phone number: String | register(license: String, type: CarType): Car | tostring(): String

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

Based on the class diagram image below, create customer, car, and parking lot classes for an object-oriented parking system. Classes should contain properties and method implemetaions.

Include a small write-up about your implementation. 

| ParkingLot
| lot id: String
| address: String
| capacity: integer
| entry (Car): void
| tostring(): String
| CarType <<enum>>
СОMPАСТ
| SUV
| Car
| permit: String
| permit expiration: LocalDate**
license: String
type: CarType
| owner: customer id
| tostring(): String
|Customer
| customer id: String
| name: String
| address: String
| phone number: String
| register(license: String,
type: CarTyре): Car
| tostring(): String
Transcribed Image Text:| ParkingLot | lot id: String | address: String | capacity: integer | entry (Car): void | tostring(): String | CarType <<enum>> СОMPАСТ | SUV | Car | permit: String | permit expiration: LocalDate** license: String type: CarType | owner: customer id | tostring(): String |Customer | customer id: String | name: String | address: String | phone number: String | register(license: String, type: CarTyре): Car | tostring(): String
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT