Inheritance

studied byStudied by 112 people
2.5(2)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 10

11 Terms

1

inheritance

a way to create relationships between classes

New cards
2

inheritance hierarchy

designed to quantify the relationship between these classes. It defines the parent class and all of it’s children classes

New cards
3

superclass

the parent class, it holds the most basic form of objects found in the overall program

New cards
4

subclass

the objects in this “child class” will be more specific compared to those found in the superclass, or parent class

New cards
5

multiple inheritance

A class MAY NOT have more than 1 direct superclass!! This is against the rules in Java!!

New cards
6

overidden

a child class can have the same method class as the parent class. Methods are resolved based on the class that the object was created in. The method will be called instead of the inherited parent method. child overrides the parent method

New cards
7

overloaded

2 methods with the same name but with different lists of parameters, they can differ in number or type

New cards
8

super keyword

keyword used to call a method in a class, useful when child class overrides and inherited method, yet it still wants to call it

New cards
9

extends

keyword used to specify the parent class to inherit from, that is followed by the name of the parent class, if extends isn’t mentioned, it will just inherit from the object class

New cards
10

static

a keyword used to indicate that an instance variable or a method is a part of the class and not an object that is created by the class

New cards
11

polymorphism

The runtime type of an object can be that type or any subclass of the declared type. All method calls are resolved starting with the class that created the object. If the method isn’t found in the class that created the object, then it will look to the parent class until it finds the method. The method must exist, or the code won’t compile

New cards

Explore top notes

note Note
studied byStudied by 11 people
980 days ago
5.0(1)
note Note
studied byStudied by 39 people
956 days ago
5.0(3)
note Note
studied byStudied by 7 people
398 days ago
5.0(1)
note Note
studied byStudied by 17 people
853 days ago
5.0(1)
note Note
studied byStudied by 11338 people
656 days ago
4.6(36)
note Note
studied byStudied by 116 people
488 days ago
5.0(1)
note Note
studied byStudied by 30 people
700 days ago
5.0(1)
note Note
studied byStudied by 20 people
828 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (83)
studied byStudied by 57 people
770 days ago
5.0(2)
flashcards Flashcard (40)
studied byStudied by 10 people
728 days ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 2 people
607 days ago
5.0(2)
flashcards Flashcard (59)
studied byStudied by 46 people
273 days ago
5.0(1)
flashcards Flashcard (54)
studied byStudied by 14 people
422 days ago
5.0(1)
flashcards Flashcard (71)
studied byStudied by 35 people
493 days ago
5.0(1)
flashcards Flashcard (352)
studied byStudied by 46 people
400 days ago
5.0(1)
flashcards Flashcard (114)
studied byStudied by 2 people
20 minutes ago
5.0(1)
robot