Using Objects

0.0(0)
studied byStudied by 5 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/21

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

22 Terms

1
New cards
Procedural abstraction
________: not knowing how a method or thing was written but still using it effectively in programs as long as you know what it does.
2
New cards
Null
________: when the variable is not pointing to any object or does not allocate or memory.
3
New cards
Wrapper classes
________: converts primitive types to object types in order for methods to work with them.
4
New cards
Concatenation
________: the process of adding 2 string values together.
5
New cards
Void
________: return type, indicates what type of value is being returned from the method, indicates that the method doesnt return anything for this type.
6
New cards
Public Rectangle
________: example of constructor name, must match class name.
7
New cards
constructor
A(n) ______ can be written with no formal parameters and instead has predetermined values.
8
New cards
Non-void methods
________ can be stored in another variable or used in an expression.
9
New cards
Public
________: access specifier, determines who has access to use the method when writing classes and objects.
10
New cards
return type
The ________ must match the data type that is being returned from the method.
11
New cards
Name the class; Example
public class Rectangle
12
New cards
public Rectangle
example of constructor name, must match class name
13
New cards
(int rectWidth, int rectHeight)
Formal Parameter list, lists the type of variables that can be passed into that constructor and their variable names, should not be variable names
14
New cards
Procedural abstraction
not knowing how a method or thing was written but still using it effectively in programs as long as you know what it does
15
New cards
Methods
procedures that allow us to control and define the behavior of an object
16
New cards
Public
access specifier, determines who has access to use the method when writing classes and objects
17
New cards
printArea()
method name, named like variables, must be concise
18
New cards
/n
adds a line break
19
New cards
/t
adds a tab space
20
New cards
Wrapper classes
converts primitive types to object types in order for methods to work with them
21
New cards
Auto boxing
primitive type → wrapper class (Integer X = 4;)
22
New cards
Unboxing
wrapper class → primitive type (int x2 = X;)