Using Objects

studied byStudied by 4 people
0.0(0)
get a hint
hint

Procedural abstraction

1 / 21

Tags and Description

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 7 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 16 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 31 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 176422 people
Updated ... ago
4.8 Stars(728)

Explore top flashcards

flashcards Flashcard70 terms
studied byStudied by 43 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard51 terms
studied byStudied by 14 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard74 terms
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard72 terms
studied byStudied by 34 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard50 terms
studied byStudied by 73 people
Updated ... ago
4.2 Stars(5)
flashcards Flashcard30 terms
studied byStudied by 14 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard39 terms
studied byStudied by 90 people
Updated ... ago
5.0 Stars(9)
flashcards Flashcard85 terms
studied byStudied by 74 people
Updated ... ago
5.0 Stars(1)