Inheritance and Polymorphism

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

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:14 PM on 5/4/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

11 Terms

1
New cards
inheritance
relationship between objects that share characteristics
2
New cards
subclass
takes the superclass state and behavior (bigger than the superclass)
3
New cards
method overriding
same method for both the superclass and subclass but different algorithm
4
New cards

partial overriding

part of the original method implementation from the superclass is retained

ex. super.computeGrade();

5
New cards

6
New cards
extends
public class Subclass extends Superclass
7
New cards
super()
calls parent constructor with no parameters
8
New cards
super(parameter, parameter)
initializes the instance variables as they are in the superclass
9
New cards
polymorphism
mechanism of selecting the appropriate method for a particular object in a class hierarchy because the actual object (not object reference) is called
10
New cards
dynamic (late) binding
run-time decision about which instance method to call (when there’s same classes)
11
New cards
static (early) binding
compiler selects the correct overloaded method at compile time by comparing the method’s signatures