1/11
Using Objects and Methods
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Return
Keyword used to return values to the calling method
Overloading
When there is more than one constructor; they must differ in the number, type, or order of parameters
Instance Variables
Define the attributes for objects
Object
A specific instance of a class with defined attributes
Dot
An operator used to access an object’s methods
Parameters
The values or data passed to an object’s method inside the parentheses in the method call to help the method do its job
Behavior
What methods define for all objects of the class
Class
Defines a new data type. It is the formal implementation, or blueprint, of the attributes and behaviors of the objects of that class
Default Constructor
Doesn’t take any arguments
Methods
Defines the behaviors or functions for objects
New
Keyword used to create objects with a call to one of the class’s constructors
Constructor
Code that is used to create new objects and initialize the object’s attributes