Inheritance and Polymorphism

0.0(0)
studied byStudied by 3 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/7

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

8 Terms

1
New cards

super() Function

No need to use the name of the parent class, it will inherit the methods and properties from its parent automatically.

2
New cards

issubclass (sub, sup) Method

Used to check the relationships between the specified classes. Returns True if the first class is the subclass of the second class, otherwise returns False.

3
New cards

isinstance (obj, class) Method

Used to check the relationship between the objects and class. Returns True if the first parameter, obj, is the instance of the second parameter, class.

4
New cards

Method Overriding

Specific implementation of a parent class method is defined in the child class.

5
New cards

Polymorphism

Refers to the use of a single type entity (method, operator, or object) to represent different types in different situations.

6
New cards

Poly

Greek word that means many.

7
New cards

Morphism

Greek word that means forms.

8
New cards

Operator Overloading

Changing the default behavior of an operator depending on the operands can use the same operator for multiple purposes

Explore top flashcards

CGT 163 Exam 1
Updated 967d ago
flashcards Flashcards (81)
Chapter 1 & 2
Updated 231d ago
flashcards Flashcards (65)
Body Mechanics
Updated 197d ago
flashcards Flashcards (34)
Biology term 1 y9
Updated 883d ago
flashcards Flashcards (49)
CGT 163 Exam 1
Updated 967d ago
flashcards Flashcards (81)
Chapter 1 & 2
Updated 231d ago
flashcards Flashcards (65)
Body Mechanics
Updated 197d ago
flashcards Flashcards (34)
Biology term 1 y9
Updated 883d ago
flashcards Flashcards (49)