Challenge
Oppgave
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 2
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 7.69
Challenge
Sveip for å vise menyen
Oppgave
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.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 2
single