OOP Midterm

0.0(0)
Studied by 3 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/23

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:35 PM on 10/18/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

24 Terms

1
New cards

Constructor

A special method used to create an instance of a class using the new keyword.

2
New cards

Default Constructor

A constructor automatically provided by Java with an empty parameter list and body if no constructors are defined in a class.

3
New cards

No-Argument Constructor

Another name for the default constructor, which takes no parameters.

4
New cards

this keyword

Used to refer to instance variables when they have the same name as constructor parameters.

5
New cards

Constructor Overloading

The ability to have multiple constructors in a class with different type parameters.

6
New cards

Constructor Chaining

The process where one constructor calls another constructor with a greater number of parameters.

7
New cards

Encapsulation

The concept of hiding an object's data and methods from outside access.

8
New cards

Fields

Variables that hold the state of an object within a class.

9
New cards

Accessor Method

A public method that retrieves data from a private instance variable.

10
New cards

Mutator Method

A public method that modifies the data in one or more private instance variables.

11
New cards

Immutable Class

A class that does not change after an object of another class is created.

12
New cards

Inheritance

A mechanism that allows a class to inherit attributes and behaviors from another class.

13
New cards

Subclass

A class that is derived from another class, also known as a derived class or child class.

14
New cards

Superclass

The class from which a subclass is derived, also known as a base class or parent class.

15
New cards

Object Class

The root class in Java from which all classes inherit, with no parent classes.

16
New cards

Final Modifier

A keyword used to prevent a class from being extended.

17
New cards

Private Fields

Instance variables in a superclass that cannot be accessed directly by its subclass.

18
New cards

Constructor Rules

Guidelines that dictate how constructors should be defined and called in Java.

19
New cards

super() Command

A call to the parent class constructor that must be the first statement in a child class constructor.

20
New cards

No-Argument Super()

An automatically inserted call to the parent class's no-argument constructor if none is explicitly declared.

21
New cards

Explicit Parent Constructor Call

Required when the parent class does not have a no-argument constructor and the child class defines constructors.

22
New cards

Parent Constructor Execution

The parent constructor is executed before the child constructor during object creation.

23
New cards

Method Overriding

The ability to define a new version of an existing method in a subclass that uses the parent class's method definition.

24
New cards

Overriding Method Requirements

The new method in the subclass must have the same name, parameter list, and return type as the parent class method and must be at least as accessible.

Explore top notes

note
Comma Rules
Updated 1180d ago
0.0(0)
note
Japanese Term 4 Vocabulary
Updated 136d ago
0.0(0)
note
Ap psych
Updated 464d ago
0.0(0)
note
Honors Gov. Final
Updated 665d ago
0.0(0)
note
Group 7 Elements
Updated 1234d ago
0.0(0)
note
AP Calculus BC Must Knows!
Updated 883d ago
0.0(0)
note
Cold War Class Notes
Updated 1103d ago
0.0(0)
note
Comma Rules
Updated 1180d ago
0.0(0)
note
Japanese Term 4 Vocabulary
Updated 136d ago
0.0(0)
note
Ap psych
Updated 464d ago
0.0(0)
note
Honors Gov. Final
Updated 665d ago
0.0(0)
note
Group 7 Elements
Updated 1234d ago
0.0(0)
note
AP Calculus BC Must Knows!
Updated 883d ago
0.0(0)
note
Cold War Class Notes
Updated 1103d ago
0.0(0)

Explore top flashcards

flashcards
RA- Heeter
50
Updated 832d ago
0.0(0)
flashcards
AP Micro Unit 1
34
Updated 1140d ago
0.0(0)
flashcards
Avancemos 2 1.1
36
Updated 920d ago
0.0(0)
flashcards
Science Fluids Test
23
Updated 1068d ago
0.0(0)
flashcards
Ecce Romani Chapter 52 Vocab
25
Updated 203d ago
0.0(0)
flashcards
LS 101 Midterm 2 (addition)
72
Updated 867d ago
0.0(0)
flashcards
APUSH: Chapter 23 Simple IDs
30
Updated 461d ago
0.0(0)
flashcards
RA- Heeter
50
Updated 832d ago
0.0(0)
flashcards
AP Micro Unit 1
34
Updated 1140d ago
0.0(0)
flashcards
Avancemos 2 1.1
36
Updated 920d ago
0.0(0)
flashcards
Science Fluids Test
23
Updated 1068d ago
0.0(0)
flashcards
Ecce Romani Chapter 52 Vocab
25
Updated 203d ago
0.0(0)
flashcards
LS 101 Midterm 2 (addition)
72
Updated 867d ago
0.0(0)
flashcards
APUSH: Chapter 23 Simple IDs
30
Updated 461d ago
0.0(0)