Term
|
Definition
a collection of objects talking to other objects by invoking each other's methods. |
|
|
Term
|
Definition
A template or blueprint that describes the kinds of state and behavior that objects of its type support |
|
|
Term
|
Definition
instance of the class. made with the keyword 'new'. Objects will have its won state, and access to all of the behaviors defined by its class |
|
|
Term
State (instance variables) |
|
Definition
Each object or instance of a class will have its own unique set of instance variables as defined in the class. Collectively, the values assigned to an object's instance variables make up the object's state |
|
|
Term
|
Definition
Methods are where the class' logic is stored. Methods are where algorithms get executed, and data gets manipulated |
|
|
Term
|
Definition
names of the classes, variables, and methods.
There are conventions for naming methods and variables |
|
|
Term
Conventions of
writing a variablename |
|
Definition
camelCase -- the first letter of the first word letter will be lower case and the first letter of the second word will be upper case or each word separated by underscore
Example: numberOfCards
number_of_cards |
|
|
Term
Convention for naming a Class |
|
Definition
Class starts with the uppercase |
|
|
Term
Conventions for naming methods |
|
Definition
camelCase again
calculateAverageForClass() |
|
|
Term
|
Definition
Java has set of built-in keywords. Example: new, Class, void, etc.
These keywords cannot be used as identifiers |
|
|