Allowing different derived classes to be used interchangeably through the interface provided by a common base class is called ______
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: D. Run-time polymorphism
Explanation
Calling overridden virtual functions through a base-class pointer/reference is run-time (dynamic) polymorphism.More Programming Languages and Computer Graphics questions
- In a ______ curve the first and last vertices of the control polygon lie on the curve, and all other vertices define the derivatives, order…
- Inheritance provides the benefits of A. Shared interfaces B. Run-time polymorphism C. Less redundant information D. Dynamic binding Choose…
- Which of the following are correct uses of std::string constructors? A. string s1; B. string s2(s1); C. string s3{7}; D. string s4{'a'}; E.…
- A corporate website's appearance varies according to the department that owns the documents, but all documents follow the corporate look an…
- Match List I with List IIList I List II A. 2-D Array Input I. Liquid Crystal Display B. Transmissive device II. Flat-bed scanner C. Binary…
- Consider the following conditional code, which returns a Boolean value:if ((x > 25) && (y > 100)) return 'false'; else if ((x <= 25) && (y…