Challenge
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
Suggested prompts:
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 7.69
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