Chapter 1: objects Flashcards
(11 cards)
Object
An individual instance of a class. An object can only exist during runtime.
Method
Specifies the actions of an object
parameter
Variable passed to a method that provides more information for the method
Signature
Combination of identifiers, return value, name and parameters of a method. Example: public int calculateMonth(String name)
Type
Specifies what kind of thing a variable or a parameter is. eg int, char, boolean
Instance
An object
Multiple instances
The case when there are multiples objects from the same class instantiated at runtime
State
The values of all of the variables in an object at a given time
Return value
The value that comes back from a method after it is run. In the following method: public int calculateMontth(String name), the return value is an integer
field
A variable that belongs to the entire class (not just a method)
Class
defines the characteristics and actions of an object. Models things from the problem domain.