• 12 hours
  • Easy

Free online content available in this course.

course.header.alt.is_video

course.header.alt.is_certifying

Got it!

Last updated on 1/26/21

Use Inheritance Behavior in a Python Program

Log in or subscribe for free to enjoy all this course has to offer!

Evaluated skills

  • Use inheritance behavior in a Python program
  • Question 1

    When a class inherits from another class, it gains the parent class’s:

    Careful, there are several correct answers.
    • Methods

    • Variables

    • Name

  • Question 2

    An abstract base class:

    • Can be instantiated, but should be inherited from.

    • Can’t be instantiated or inherited from.

    • Can’t be instantiated, but can be inherited from.

  • Question 3

    Duck typing is:

    • When Python cares about what an object can do, not what type it is. 

    • When you have to define each variable’s type.

    • When you can use a child object rather than its parent.