Skip to content

I need help. Is my code right? Thank you. #123553

Discussion options

You must be logged in to vote

Hi @Xaeon23 ,

Yes your code overall is fine, the only thing I would add to it is a call to the sound() method on the animal1 instance, which prints out the sound of the animal along with its name, type, and color:

animal1.sound();

Result:

Mooooo my name is Shawn, and I'm a Cow. My color is White

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ebndev
Comment options

Answer selected by Xaeon23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Programming languages, open source, and software development.
4 participants