Unit 3 - Objects Flashcards
a blueprint that provides one or more methods that are designed to perform the class’s task
object
a version of a class with specific and unique attributes
instance
one particular object of a class
access modifier
including public and pirvate
help restrict the scope of a class, constructor, variable, method or data member
provides security and accessibility
instance variable
field
a property, attribute, characteristic of a class
private methods
constructor method
a special method that is used to initialize fields and associates the parameters with the fields
public method
UML Class Diagram
Unified Modeling Language
a diagram that represents a class with methods and variables within them; contains three parts - name of class, -fields, +methods
import statement
this is the process of bringing external data/content into the program to be used
parameter
a variable in a fucntion definition; just a placeholder in the brackets; the constructor has one parameter for each field
argument
the value that is sent to the method when it is called; when you use the constructor you pass the values
set method
takes a parameter and assigns it to its field; one set method for each field; often referred to as a mutator
get method
returns the value from our fields; referred to as an accessor
primitive type
the basic types of data (e.g. boolean, byte, char, short, int, long, float, doubl)
not String
reference type
data types that stores references or memory addresses rather than the actual value themselves; they include objects, arrays, strings; a data type that stores an object