Lesson

Codecademy Learn Java, Using Methods part 1, Object Oriented

Lesson Summary

In this Java lesson on Codecademy we learn how to use the bark method we created on the previous lesson. In our main method we can use the method we created utilizing dot syntax. First we create a new instance of our dog named spike. We then use the bark method on our Dog object. Example spike.bark()

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: