Question: 1 . Write the definition of a struct named Date that contains separate variables for the day, month and year. 2 . Write the definition

1. Write the definition of a struct named Date that contains separate variables for the day,
month and year.
2. Write the definition of a struct named PersonInfo that contains a persons name, height,
weight and birthdate. For the birthdate, use an instance of the struct defined in problem 1.
3.Write the definition of a class named Car that has member data to store the make, the
model, and the year of the car. The member data should be private. Also declare two
public functions, one that sets the make, model and year, and another that gets these
values (as references in the argument).
4. How would you define the function SetCarType(string make, string model, int year) in
the file Car.cpp that was declared in class Car defined in Car.h?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!