Java serious OOP Practice

Problem statement: Write a program to simulate a car dealership sales process. We will have employees, working selling vehicles to customers.

you have to think about nouns(a person, name or thing) while doing OOP, we have 4 nouns in the problem statement.

Dealership.java

Customer.java

Vehicle.java

Employee.java

Output:
if false in purchaseCar()

if true in purchaseCar()

 

 

 

 

Spread the love