This repository contains two Python programs designed to explore key Object-Oriented Programming (OOP) concepts.
superhero.py— Demonstrates constructors, inheritance, encapsulation, and method overriding via aMutantsubclass.transport.py— Polymorphism example:Car,Plane, andBoatoverride the shared methodmove()differently.
- Constructors using
__init__ - Encapsulation via private attributes
- Class inheritance and method overriding
- Polymorphism in practice
- Clear, maintainable code with example usage
Run each script using your terminal:
python superhero.py
python transport.py This project is licensed under the MIT License.
Name: Augusto Mate
Email: mate.augusto.mz@gmail.com
Location: Matola, Mozambique