Class representing an industrial worker, a type of citizen. More...
#include <Citizen.h>
Public Member Functions | |
| IndustrialWorker () | |
| Default constructor for IndustrialWorker. | |
| IndustrialWorker (string workplace) | |
| Constructor for IndustrialWorker with specified workplace. | |
| virtual void | displayInfo () |
| Displays information about the industrial worker. | |
Public Member Functions inherited from Citizen | |
| Citizen () | |
| Default constructor for Citizen. | |
| virtual | ~Citizen ()=default |
| Virtual destructor for Citizen. | |
| virtual void | setCitizen (string type, string residence, string workplace) |
| Sets the properties of the citizen. | |
| virtual std::string | getType () |
| Gets the type of the citizen. | |
| virtual string | getResidence () |
| Gets the residence of the citizen. | |
| virtual string | getWorkplace () |
| Gets the workplace of the citizen. | |
| virtual float | getSatisfaction () |
| Gets the satisfaction level of the citizen. | |
| void | changeSatisfaction (float amt) |
| Changes the satisfaction level of the citizen. | |
Class representing an industrial worker, a type of citizen.
The IndustrialWorker class inherits from Citizen and represents a worker in the industrial sector.
| IndustrialWorker::IndustrialWorker | ( | string | workplace | ) |
Constructor for IndustrialWorker with specified workplace.
| workplace | The workplace of the industrial worker. |
|
virtual |
Displays information about the industrial worker.
Implements Citizen.