1
0
Fork 0
This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
uni-m.cds-adv-prog/ex8.1/main.cpp
Eric Teunis de Boone 579d3355cc Ex8.1
2020-01-06 16:36:53 +01:00

32 lines
666 B
C++

#include <iostream>
#include "Employee.hh"
#include "Manager.hh"
int main() {
Employee wouter("Wouter", 0);
Employee ivo("Ivo", 0);
Manager stan("Stan", 0);
Manager jo("Jo", 0);
Manager frank("Frank", 0);
stan.addSubordinate(wouter);
stan.addSubordinate(ivo);
frank.addSubordinate(stan); // This does not give a problem because stan is also of type Employee
frank.addSubordinate(jo);
// Print the Business Cards
frank.businessCard();
std::cout << std::endl;
jo.businessCard();
std::cout << std::endl;
stan.businessCard();
std::cout << std::endl;
wouter.businessCard();
std::cout << std::endl;
ivo.businessCard();
std::cout << std::endl;
}