Throughout these lessons, you have been writing classes in Java, but you have primarily just been using main() to call Java functions, Finch methods, or your own methods. This lesson will focus on designing classes in an object-oriented way. A class defines the methods and variables for a programming object. A good object-oriented class will encapsulate a set of variables and methods that logically belong together.
Register to receive free access to all teacher materials.