questionexecute a class person with two fields


Question

Execute a class Person with two fields name and age, and a class Car with three fields-

1. The model

2. A pointer to the owner (a Person*)

3. A pointer to the driver (also a Person*)

write down a program that prompts the user to specify people and cars. Store them in a vector and a vector. Navigate the vector of Person objects and increment their ages by one year. Navigate the vector of cars and print out car model, owner's name and age, and driver's name and age.

 

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: questionexecute a class person with two fields
Reference No:- TGS0444093

Expected delivery within 24 Hours