Unit 3 - Objects Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

class

A

a blueprint that provides one or more methods that are designed to perform the class’s task

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

object

A

a version of a class with specific and unique attributes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

instance

A

one particular object of a class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

access modifier

including public and pirvate

A

help restrict the scope of a class, constructor, variable, method or data member

provides security and accessibility

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

instance variable

field

A

a property, attribute, characteristic of a class

private methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

constructor method

A

a special method that is used to initialize fields and associates the parameters with the fields

public method

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

UML Class Diagram

Unified Modeling Language

A

a diagram that represents a class with methods and variables within them; contains three parts - name of class, -fields, +methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

import statement

A

this is the process of bringing external data/content into the program to be used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

parameter

A

a variable in a fucntion definition; just a placeholder in the brackets; the constructor has one parameter for each field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

argument

A

the value that is sent to the method when it is called; when you use the constructor you pass the values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

set method

A

takes a parameter and assigns it to its field; one set method for each field; often referred to as a mutator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

get method

A

returns the value from our fields; referred to as an accessor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

primitive type

A

the basic types of data (e.g. boolean, byte, char, short, int, long, float, doubl)

not String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

reference type

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly