Question: You are expected to create a file that contains 2 classes named car and human. Class car: The class should have a constructor. Getcarbrand member
You are expected to create a file that contains classes named "car" and "human".
Class car:
The class should have a constructor.
Getcarbrand member function should return the brand of the car.
Displaymessage member function should print the brand of the car.
Class human:
The class should have a constructor.
Gethumanname member function should return the name of human.
Displaymessage member function should print the name of human.
The main function should create objects for the car and human class.
After solving question you should split the file into different files.
File : car.h prototypes of car class functions
File :human.h prototypes of human class functions
File : merge.cpp details to functions of the car and human classes
File : main.cpp details of main function
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
