Sectionย 4. Chapterย 2
single
Challenge
Swipe to show menu
Task
Swipe to start coding
- Create the
Catclass:
- Set
infoandmake_soundmethods inside theCatclass; - Inside the
make_soundmethod print'Meow'.
- Create the
Dogclass:
- Set
infoandmake_soundmethods inside theDogclass; - Inside the
make_soundmethod print'Bark'.
- Create
catanddogobjects based on theCatandDogclasses respectively.
Solution
Everything was clear?
Thanks for your feedback!
Sectionย 4. Chapterย 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat