consolidate all repos to one for archive
This commit is contained in:
22
semester_2/programiranje_2/primeri/Example10/Employee.h
Normal file
22
semester_2/programiranje_2/primeri/Example10/Employee.h
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
#ifndef EXAMPLE10_EMPLOYEE_H
|
||||
#define EXAMPLE10_EMPLOYEE_H
|
||||
|
||||
#include <iostream>
|
||||
|
||||
class Employee {
|
||||
private:
|
||||
std::string name;
|
||||
public:
|
||||
Employee(std::string name) : name(name) {
|
||||
std::cout << "Employee::constructor" << std::endl;
|
||||
}
|
||||
virtual ~Employee() {
|
||||
std::cout << "Employee::destructor" << std::endl;
|
||||
}
|
||||
virtual const std::string& toString() const {
|
||||
return name;
|
||||
};
|
||||
};
|
||||
|
||||
#endif //EXAMPLE10_EMPLOYEE_H
|
||||
Reference in New Issue
Block a user