Skip to content

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

Assignment 1: Design Your Own Class! ๐Ÿ—๏ธ

  1. Create a class representing anything you like (a Smartphone, Book, or even a Superhero!).
  2. Add attributes and methods to bring the class to life!
  3. Use constructors to initialize each object with unique values.
  4. 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" โœˆ๏ธ).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages