Lesson

Codecademy Learn Java, Classes Instance Variables, Object Oriented Java

Lesson Summary

In this lesson we go over instance variables in Java. An instance variable allows us to give detail specific information to our class. We can give our class attributes to model a real world object. In this lesson we give our dog class an instance variable of age to model a real life dog.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: