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 2 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 1 you should split the file into 4 different files.
File 1: car.h //prototypes of car class functions
File 2:human.h //prototypes of human class functions
File 3: merge.cpp //details to functions of the car and human classes
File 4: main.cpp //details of main function
 You are expected to create a file that contains 2 classes

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 Databases Questions!