sudo apt-get marks
 
Loading...
Searching...
No Matches
IndustrialWorker Class Reference

Class representing an industrial worker, a type of citizen. More...

#include <Citizen.h>

Inheritance diagram for IndustrialWorker:
Citizen

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.
 

Detailed Description

Class representing an industrial worker, a type of citizen.

The IndustrialWorker class inherits from Citizen and represents a worker in the industrial sector.

Constructor & Destructor Documentation

◆ IndustrialWorker()

IndustrialWorker::IndustrialWorker ( string workplace)

Constructor for IndustrialWorker with specified workplace.

Parameters
workplaceThe workplace of the industrial worker.

Member Function Documentation

◆ displayInfo()

void IndustrialWorker::displayInfo ( )
virtual

Displays information about the industrial worker.

Implements Citizen.