• 20 hours
  • Medium

Free online content available in this course.

course.header.alt.is_video

course.header.alt.is_certifying

Got it!

Last updated on 5/25/20

Go further with code abstraction

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

Evaluated skills

  • Describe hierarchy of class definitions, generalization and specifics of objects
  • Question 1

    Which inheritance diagram is reflected in the following code sample?

    class Figure {
    }
    class Triangle: Figure {
    }
    class Ellipse: Figure {
    }
    class Circle: Ellipse {
    }

     

  • Question 2

    Select the true statements considering that class Chair is a subclass of class Furniture:

    Careful, there are several correct answers.
    • All properties and methods defined in the Furniture class are available in the Chair class.

       

    • All properties and methods defined in the Chair class are available in the Furniture class.

       

    • Properties and methods defined in Chair class  are not available in the Furniture class.

       

    • Only properties of the Furniture class are available in the Chair class.

    • Only methods of the Furniture class are available in the Chair class.

  • Question 3

    What is enumeration?

    Careful, there are several correct answers.
    • A named type

    • A mandatory method of a class

    • A class modifier

    • A custom type that enumerates related cases