oops_assignment_1

Assignment 1 – Object Oriented Programming

Name: Ali Language: Python

How to Run Each File

Open terminal in the assignment folder and run:

python class_objects.py python encapsulation.py python inheritance.py python abstraction.py python polymorphism.py

OOP Concepts Demonstrated

class_objects.py

Concept: Classes and Objects
This file demonstrates basic class creation and object usage.

encapsulation.py

Concept: Encapsulation
This file demonstrates private attributes and controlled access using setters.

inheritance.py

Concept: Inheritance
This file demonstrates single and multilevel inheritance.

abstraction.py

Concept: Abstraction
This file demonstrates abstract base classes and method overriding.

polymorphism.py

Concept: Polymorphism
This file demonstrates runtime polymorphism using multiple examples.