예제 #1
0
int main(int argc, char** argv) {
    ProductionWorker test;
    test.setName("Bill");
    test.setNumber(1234);
    test.setDate("12/1/2015");
    test.setShift(2);
    test.setRate(12.56);
    cout << test.getDate();
    return 0;
}
int main()
{

	ProductionWorker pwork;

	pwork.setName("Ryan");
	pwork.setNumber(23456);
	pwork.setDate("12/1/2015");
	pwork.setShift(2);
	pwork.setRate(12.56);
	cout << pwork.getName() << " " << pwork.getNumber() << " " << pwork.getDate() << endl;

	ShiftSupervisor super;

	super.setSalary(100000);
	super.setBonus(2500);

	cout << super.getSalary() + super.getBonus() << endl;

	return 0;
}