-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
40 lines (32 loc) · 1.03 KB
/
Copy pathmain.cpp
File metadata and controls
40 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <iostream>
#include "AdministrativeStaff.h"
#include "ProbationerStaff.h"
#include "ProductionWorker.h"
using namespace std;
int main() {
AdministrativeStaff nvhc;
ProbationerStaff nvts;
ProductionWorker ncsx;
nvhc.setId(1);
nvhc.setLastName("Nguyen");
nvhc.setFirstName("Tuan");
// ... set các thuộc tính khác cho nvhc
nvts.setId(2);
nvts.setLastName("Huynh");
nvts.setFirstName("Phat");
// ... set các thuộc tính khác cho nvts
ncsx.setId(3);
ncsx.setLastName("Tran");
ncsx.setFirstName("Nam");
// ... set các thuộc tính khác cho ncsx
cout << "***Nhan vien hanh chanh***\n";
cout << "Ma: " << nvhc.getId() << endl;
cout << "Ten: " << nvhc.getFirstName() << endl;
cout << "***Nhan vien tap su***\n";
cout << "Ma: " << nvts.getId() << endl;
cout << "Ten: " << nvts.getFirstName() << endl;
cout << "***Nhan vien san xuat***\n";
cout << "Ma: " << ncsx.getId() << endl;
cout << "Ten: " << ncsx.getFirstName() << endl;
return 0;
}