Implement a class person with two fields name and age and a


You need to implement a class that saves the details of the person.       

Question: Implement a class Person with two fields name and age, and a class Car with three fields:

  • The model
  • A pointer to the owner (a Person*)
  • A pointer to the driver (also a Person*)

Program: Write a program that prompts the user to specify people and cars. Store them in a vector and a vector.

Traverse the vector of Person objects and increment their ages by one year.

Traverse the vector of cars and print out the car model, owner's name and age, and driver's name and age.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Implement a class person with two fields name and age and a
Reference No:- TGS0949874

Expected delivery within 24 Hours