If this is your first encounter with object-oriented programming, a lot of the information in this lesson is going to seem really theoretical and overwhelming. Fear not-the further along in this book you get, and the more Java classes and applications you create, the easier it is to understand.
One of the biggest hurdles of object-oriented programming is not necessarily the concepts; it's their names. OOP has lots of jargon surrounding it. To summarize today's material, here's a glossary of terms and concepts you learned today:
class:
A template for an object, which contains variables and methods representing behavior and attributes. Classes can inherit variables and methods from other classes.
class method:
A method defined in a class, which operates on the class itself and can be called via the class or any of its instances.
class variable:A variable that is "owned" by the class and all its instances as a whole and is stored in the class.
class variable:A variable that is "owned" by the class and all its instances as a whole and is stored in the class.

No comments:
Post a Comment