Unit 3 - Objects Vocabulary Flashcards
Class
An object constructor or “blueprint” for making objects.
Object
Objects are specific entitys (instances) of classes that store attributes/properties and functions/methods of a class.
Instance
A single occurrence of a class or object. One particular object of a class (which has different attributes and properties). Describes the individual objected created from a class.
Access Modifier (including public and private)
Access modifiers help restrict the scope of a class, constructor, variable, method or data member.
Instance Variable (Field)
A private variable that is specific to a certain object (adjectives).
Constructor Method
The constructor method is used to initialize objects.
UML Class Diagram (Unified Modeling Language)
A diagram that represents a system’s structure and relationships by showing its classes, methods and attributes.
Import Statement
The import statement in Java allows you to access classes, interfaces, and packages from external sources.
Parameter
A parameter is a variable that is passed inside a method’s heading (receives). Constructor methods has one parameter for each field.
Arguement
The values that will be sent to the parameters. Constructor methods receive the arguments (values) of the basketball player (name, team, age, height).
Set Method
Used to assign the value of a property in an object. There is one set method for each field.
Get Method
Used to get a value from a class/method. The method that returns the value from the fields.
Primitive Type
A variable type that can store exactly one value of its declared type at a time.
Reference Type
A variable type used to store the location of objects in the computer’s memory.