Java Interlude 7: Inheritance and Polymorphism

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

1/9

flashcard set

Earn XP

Description and Tags

These flashcards cover key concepts related to inheritance and polymorphism in Java, focusing on their definitions and characteristics.

Last updated 10:52 PM on 3/31/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

Inheritance

A mechanism in object-oriented programming that allows one class to inherit the properties and methods of another class.

2
New cards

Polymorphism

The ability of different classes to be treated as instances of the same class through a common interface, enabling one method to act differently based on the object that invokes it.

3
New cards

Abstract Class

A class that cannot be instantiated and is meant to be subclassed; it may contain abstract methods that must be implemented by derived classes.

4
New cards

Access Modifiers

Keywords in Java that set the visibility of classes, methods, and variables; the common ones are public, private, protected, and package-private.

5
New cards

Dynamic Type

The actual type of the object that is referenced by a variable at runtime, determining which method version is called.

6
New cards

Protected Access

An access modifier that allows methods and data fields to be accessed within the same package and by subclasses, but not by other classes.

7
New cards

Final Class

A class that cannot be subclassed; it is declared using the final keyword and prevents inheritance.

8
New cards

Abstract Method

A method that is declared without an implementation in its abstract class and must be implemented in any subclass.

9
New cards

Interface

A reference type in Java that can contain only constants, method signatures, default methods, static methods, and nested types; classes implement interfaces to specify their behaviors.

10
New cards

Stack Interface

An interface defining the operations of a stack data structure, including methods for push, pop, and peek.