Challenge for Classes
The class Robot below is very similar to the Human class above. Follow these steps on the bottom of the code:
- Create a Robot named "Jim"
- Call the instance method
sayon your robot and pass it the String "Greetings"
- Call the class method
get_specieson your robot.
- Call Robot's static method
Alternatively, you can try out Learneroo before signing up.