Using Objects

studied byStudied by 5 people
0.0(0)
Get a hint
Hint

Procedural abstraction

1 / 21

flashcard set

Earn XP

Description and Tags

22 Terms

1

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.

New cards
2

Null

________: when the variable is not pointing to any object or does not allocate or memory.

New cards
3

Wrapper classes

________: converts primitive types to object types in order for methods to work with them.

New cards
4

Concatenation

________: the process of adding 2 string values together.

New cards
5

Void

________: return type, indicates what type of value is being returned from the method, indicates that the method doesnt return anything for this type.

New cards
6

Public Rectangle

________: example of constructor name, must match class name.

New cards
7

constructor

A(n) ______ can be written with no formal parameters and instead has predetermined values.

New cards
8

Non-void methods

________ can be stored in another variable or used in an expression.

New cards
9

Public

________: access specifier, determines who has access to use the method when writing classes and objects.

New cards
10

return type

The ________ must match the data type that is being returned from the method.

New cards
11

Name the class; Example

public class Rectangle

New cards
12

public Rectangle

example of constructor name, must match class name

New cards
13

(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

New cards
14

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

New cards
15

Methods

procedures that allow us to control and define the behavior of an object

New cards
16

Public

access specifier, determines who has access to use the method when writing classes and objects

New cards
17

printArea()

method name, named like variables, must be concise

New cards
18

/n

adds a line break

New cards
19

/t

adds a tab space

New cards
20

Wrapper classes

converts primitive types to object types in order for methods to work with them

New cards
21

Auto boxing

primitive type → wrapper class (Integer X = 4;)

New cards
22

Unboxing

wrapper class → primitive type (int x2 = X;)

New cards

Explore top notes

note Note
studied byStudied by 11 people
... ago
5.0(1)
note Note
studied byStudied by 23 people
... ago
5.0(1)
note Note
studied byStudied by 52 people
... ago
4.7(3)
note Note
studied byStudied by 2 people
... ago
4.0(1)
note Note
studied byStudied by 13 people
... ago
5.0(1)
note Note
studied byStudied by 35 people
... ago
5.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 448 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (68)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (182)
studied byStudied by 28 people
... ago
5.0(3)
flashcards Flashcard (22)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (50)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 1 person
... ago
5.0(1)
robot