Skip to content

Osagie-Obode/object-oriented-programming-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

object-oriented-programming-assignment

PLP WEEK5 POOP

Assignment 1: Design Your Own Class! πŸ—οΈ

Create a class representing anything you like (a Smartphone, Book, or even a Superhero!). Add attributes and methods to bring the class to life! Use constructors to initialize each object with unique values. Add an inheritance layer to explore polymorphism or encapsulation.

Activity 2: Polymorphism Challenge! 🎭

Create a program that includes animals or vehicles with the same action (like move()). However, make each class define move() differently (for example, Car.move() prints "Driving" πŸš—, while Plane.move() prints "Flying" ✈️).

Assignment 1 Solution πŸ—οΈ

engineers.py

Activity 2 Solution 🎭

bar_customers.py

About

PLP WEEK5 POOP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages