Question: 1 . Write the definition of a struct named Date that contains separate variables for the day, month and year. 2 . Write the definition
Write the definition of a struct named Date that contains separate variables for the day,
month and year.
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
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
How would you define the function SetCarTypestring 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
