Exam 12: Object-Oriented Programming: Polymorphism

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Polymorphism is implemented via:

(Multiple Choice)
4.8/5
(27)

Which of the following assignments would be a compilation error?

(Multiple Choice)
4.8/5
(32)

The line: virtual double earnings() const = 0; Appears in a class definition. You cannot deduce that:

(Multiple Choice)
4.8/5
(27)

What mistake prevents the following class declaration from functioning properly as an abstract class? class Shape { Public: Virtual double print() const; Double area() const {return base * height;} Private: Double base; Double height; };

(Multiple Choice)
4.9/5
(38)

The C++ compiler makes objects take up more space in memory if they:

(Multiple Choice)
5.0/5
(37)

To help prevent errors, apply C++11's ________ keyword to the prototype of every derived-class function that overrides a base-class virtual function.

(Multiple Choice)
4.9/5
(36)

Concrete classes that inherit virtual functions but do not override their implementations:

(Multiple Choice)
5.0/5
(40)
Showing 21 - 27 of 27
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)