Skip to content

software-development-course-2025/python-week-5-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🐍 Python Week 5 Assignment – Object-Oriented Programming

📚 Overview

This repository contains two Python programs designed to explore key Object-Oriented Programming (OOP) concepts.

Files Included

  • superhero.py — Demonstrates constructors, inheritance, encapsulation, and method overriding via a Mutant subclass.
  • transport.py — Polymorphism example: Car, Plane, and Boat override the shared method move() differently.

Features

  • Constructors using __init__
  • Encapsulation via private attributes
  • Class inheritance and method overriding
  • Polymorphism in practice
  • Clear, maintainable code with example usage

▶ Usage

Run each script using your terminal:

python superhero.py
python transport.py  

🪪 License

This project is licensed under the MIT License.

👤 Author

Name: Augusto Mate
Email: mate.augusto.mz@gmail.com
Location: Matola, Mozambique

About

This project is part of the Software Development Course – 2025, Week 5 assignment, aimed at strengthening Python OOP fundamentals through hands-on coding.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages