Inheritance provides the benefits of
A. Shared interfaces
B. Run-time polymorphism
C. Less redundant information
D. Dynamic binding
Choose the correct answer from the options given below:
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: C. B, C, D only
Explanation
Inheritance enables code reuse (less redundancy) and, with virtual functions, run-time polymorphism through dynamic binding. These are the keyed benefits.More Programming Languages and Computer Graphics questions
- 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…
- Machine level language is a/an
- Which of the following is wrong about data types?