Lesson

Codecademy Learn Java, Classes Constructor Parameters, Object Oriented Java

Lesson Summary

In this lesson we go over Java constructor parameters. In the previous lesson we added an instance variable to our class, now in this lesson we are adding a parameter to our constructor. By adding a parameter we will be able to assign a value that we pass in to our instance variable. If this is still not making sense it will all begin to click in the next lessons.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: