Site hosted by Angelfire.com: Build your free website today!



Constructor:
- initializes an object when it is created
- has the same name as it's class
- is syntactilly similar to a method
- constructors have no return type (not even void)
- initializes variables and performs other startup procedures to create a fully formed object

Interfaces:
- the public methods through which we can interact with an object
- a collection of constants and abstract methods
- class implements an interface by using the reserved word implements followed by the interface name in the class header
- implementing class must provide definitions for all methods in the interface
- class may have additional methods

Reserved Word:
- a word that has a predefined meaning to the compiler so it can't be used as the name for a variable or a method that the user creates
- examples include "class", "public", "private", "int", "import"