This is a simple Python project that demonstrates the concept of Object-Oriented Programming (OOP) using classes and inheritance.
The project defines an Employee class that stores basic information about employees such as:
- Name
- Salary
- Position
- Company
It also keeps track of the total number of employees created.
A Manager class inherits from the Employee class and adds an extra feature:
- Manager bonus
- Demonstrates Classes and Objects
- Demonstrates Class Variables
- Demonstrates Inheritance
- Counts total number of employees created
- Displays employee information
The program creates:
- 1 Manager
- 3 Employees
Then prints their information and the total number of individuals.
- Make sure Python is installed.
- Run the script:
python main.py