Skip to content

Idunnu4/Week-5-Python-Assignment-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Week-5-Python-Assignment-

Directory to my week 5 Python Assignment. 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.

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" โœˆ๏ธ).

About

Directory to my week 5 Python Assignment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages