CHAP 11 COSC 1010

0.0(0)
studied byStudied by 0 people
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

“is a” relationship

exists when one object is a
specialized version of another object (rectangle is a shape)

2
New cards

inheritance

used to create an “is a” relationship
between classes (bee are a type of insect)

3
New cards

superclass (base class)

a general class

4
New cards

subclass (derived class)

a specialized class, extended version of superclass (class Car(Automobile):)

5
New cards

inheritance in UML diagrams

show inheritance by drawing a line
with an open arrowhead from subclass to superclass

6
New cards

polymorphism

an object’s ability to take different
forms (accepts either object and calls another method based on the objects actual type)

7
New cards

AttributeError exception

raised when a method
receives an object which is not an instance of the
right class

8
New cards

isinstance function

determines whether object is
an instance of a class (isinstance(object, class))