Some other things I learned include:
- main() should only be used to test real classes and/or to launch and start a Java application
- Objects can "talk" to teach other by calling methods on each other
- "Global" variables don't really exist in Java OOP, but later we'll learn how using public and static can make a variable behave like a global one
- A class is like a recipe, whereas objects are like cookies
- Subclasses can inherit instance variables and methods from superclasses
No comments:
Post a Comment