Coding Challenge: Create a Dog Class
Let's implement the Dog class based on the given requirements.
We'll cover the following
Problem statement
A Dog
is defined by:
- A
name
property - A
species
property - A
size
property - A
bark()
method that returns “Grrr! Grrr!” for Dogs taller than 60 emote, and for others, it simply returns “Woof! Woof!”.
Expected output
Get hands-on with 1200+ tech skills courses.