Polymorphism

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

1/27

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:33 PM on 4/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

28 Terms

1
New cards

Inheritance

The ability of a class to acquire properties and methods from another class

2
New cards

Base class (superclass)

The original class that is inherited from

3
New cards

Derived class (subclass)

A class that inherits from another class

4
New cards
Is-a relationship
A relationship where one class is a type of another class
5
New cards
Has-a relationship
A relationship where a class contains another class as a field
6
New cards
Polymorphism
The ability for different objects to respond differently to the same method call
7
New cards
Abstract class
A class that cannot be instantiated and may include methods without implementation
8
New cards
Abstract method
A method declared without a body that must be implemented later
9
New cards
Interface
A structure that defines methods a class must implement
10
New cards
extends
Keyword used to inherit from another class
11
New cards
implements
Keyword used when a class uses an interface
12
New cards
super
Keyword used to refer to the parent class
13
New cards
Overriding
Providing a new implementation of an inherited method
14
New cards
compareTo()
A method used to compare two objects for ordering
15
New cards
Comparable
An interface that requires objects to be comparable
16
New cards
java.lang
A default package containing core Java classes
17
New cards
Is-a relationship
A type of relationship that represents inheritance
18
New cards
Has-a relationship
A type of relationship that represents composition
19
New cards
Methods available to a subclass object
All public methods from a parent class plus additional methods
20
New cards
Abstract method
A method with no implementation
21
New cards
Overriding
A method that replaces an inherited method’s behavior
22
New cards
Interface
Can be used multiple times by a class
23
New cards
Abstract class
Can only be extended once
24
New cards
Extending a class syntax
class Subclass extends Superclass {}
25
New cards
Implementing an interface syntax
class MyClass implements InterfaceName {}
26
New cards
Abstract class syntax
abstract class ClassName {}
27
New cards
Abstract method syntax
public abstract void methodName();
28
New cards
Interface syntax
interface InterfaceName {}