Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

python-week-5

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" ✈️).

Submission: Share the link to your GitHub repository with the completed assignment. Ensure that your repository is public so that it can be accessed for review.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages