Create a class called EmpCar.
i) Its private data members should include: char model [10], int year, and const int seral no.
ii) The class should use composition to include an object of Employee class into the class in order to get the employees name
iii) The class should have a constructor that initializes all its private data members.
iv) Class EmpCar should have have a friend function called carlover() that will be able to modify the year of the car.
class Employee
{
..........
............
...........
};
// new class
class EmpCar
{
private:
char model [10];
int year;
int seral no;
Employee emp ;
public:
EmpCar();
..............
...............
};
EmpCar::EmpCar()
{
year = 0 ;
serialno = 0;
}