Car Core Java Question 1
Car Core Java Question 1
Your friend, a mechanical engineer is very passionate about cars and wants to be an entrepreneur.
He decides to start his own car service center and with his knowledge about cars has the capability
to service all different brands of cars. You are also very keen to help him out in any means possible.
One fine day, your friend approaches you to help him setup and automate the process of tracking
various customers and their service feedbacks. You decide to quickly build a small system to solve
the problem.
Based on the class diagram given below, you start to build a prototype of the application.
Requirement 1:
Let’s start off by creating a customer class based on the below mentioned specifications.
Customer1 :
customer id:
1
first name:
Arun
last name:
Kumar
gender:
Male
email:
[email protected]
phone number:
9897969594
address:
Coimbatore North
Customer2 :
customer id:
123
first name:
Arun
last name:
Kumar
gender:
Male
email:
[email protected]
phone number:
9897969594
address:
Coimbatore North
Customer 1
Customer:Arun,Kumar
Contact details:9897969594,[email protected],Coimbatore North
Customer 2
Customer:Arun,Kumar
Contact details:9897969594,[email protected],Coimbatore North
Customer 1 is same as Customer 2
Sample Input and Output 2:
Customer1 :
customer id:
1
first name:
Vijay
last name:
Kumar
gender:
Male
email:
[email protected]
phone number:
9876541234
address:
North Chennai
Customer2 :
customer id:
23
first name:
Karmega
last name:
Kulazhi
gender:
Female
email:
[email protected]
phone number:
7785674563
address:
Kurangani, Theni, Tamilnadu
Customer 1
Customer:Vijay,Kumar
Contact details:9876541234,[email protected],North Chennai
Customer 2
Customer:Karmega,Kulazhi
Contact details:7785674563,[email protected],Kurangani, Theni, Tamilnadu
Customer 1 and Customer 2 are different