Java Object-Oriented Programming: Key Concepts and Terms

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/34

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

35 Terms

1
New cards

abstraction

The process of finding the essential feature set for a building block of a program such as a class.

2
New cards

access specifier

A keyword that indicates the accessibility of a feature, such as private or public. private is only available within the class. public is available to any other program.

3
New cards

accessor method

A method in an object class that will return information about the current state of the object. It may return the exact information of one instance field or a calculated answer based on one or more instance fields. It does NOT modify the instance fields.

4
New cards

actual parameter

The explicit parameter in a method call. Specifies a value that is passed into the formal parameter in the method definition. It can be an initialized variable, String literal or number.

5
New cards

argument

see actual parameter.

6
New cards

black box

The concept of using something without knowing its implementation. A black box is created by encapsulation - the hiding of unimportant details which is done among other places when creating an object class.

7
New cards

constructor

A method that initializes a newly instantiated object. It sets the initial state of the object. A unique method that must have the same name as the class and cannot have ANY return type.

8
New cards

encapsulation

The hiding of implementation details as well as anything private inside the class while still providing a public interface. It is said to be hiding the unimportant details.

9
New cards

explicit parameter

A parameter of a method other than the object on which the method is invoked. It is the values inside the ( ) following the method name in either the method call or the method definition.

10
New cards

formal parameter

The explicit parameter in a method definition. It includes a data type and variable name for each parameter. It receives its value from the actual parameter in the method call.

11
New cards

implement

To write the details of a method or class.—write the statements inside of the method/class body.

12
New cards

implicit parameter

The object on which a method is invoked. For example, in the call x.f(y), the object x is the implicit parameter of the method f.

13
New cards

initialization

Setting a variable to a well-defined value once it is created. You can do this when declaring or later in the code, but it must be done before using the variable in a computation or as a parameter.

14
New cards

instance fields

A variable defined in a class, outside of any method, for which every object of the class has its own value. Should have private access.

15
New cards

instantiate

create & initialize an instance of an Object - example: new ClassName();

16
New cards

javadoc

The documentation generator in the Java SDK.

17
New cards

Documentation comments

Comments that start with /** in Java source files, used to produce linked HTML files for API documents.

18
New cards

Local variable

A variable whose scope is a block, belonging to a method only.

19
New cards

Method body

The container containing the statements that are executed when a method is called.

20
New cards

Method call

A statement that invokes a method, causing a different method to be executed.

21
New cards

Mutator method

A method in an object class that changes the current state of the object, modifying one or more instance fields.

22
New cards

Object-oriented design

Designing a program by discovering objects, their properties, and their relationships.

23
New cards

Parameter

An item of information specified to a method when the method is called.

24
New cards

Private

The access specifier that determines a feature is accessible only by the methods of the same class.

25
New cards

Public

The access specifier that determines a feature is accessible by all classes.

26
New cards

Public interface

The features (methods, fields, and nested types) of a class that are accessible to all clients.

27
New cards

Return

The keyword that returns a value from a method, with the data type matching the return type in the method heading.

28
New cards

Return type

The value returned by a method through a return statement, specified in the method heading.

29
New cards

State

The current values of the attributes of one instance of an object.

30
New cards

This

The keyword that references the instance of the Object currently being processed.

31
New cards

Type

A named set of values and the operations that can be carried out with them.

32
New cards

Visibility

The access specifier indicating who can see a method or data.

33
New cards

@param

A javadoc keyword used to define a single formal parameter in a javadoc comment.

34
New cards

@return

A javadoc keyword used to define the information being returned by a method in a javadoc comment.

35
New cards

Still learning (8)

You've started learning these terms. Keep it up!