Can an interface hierarchy be used for polymorphism? Explain.
What will be an ideal response?
Yes. A reference variable can use an interface as its type, and can then refer to objects of classes that
implement the interface. In this way, polymorphism works the same as it does with an inheritance hierarchy.
You might also like to view...
The best time to make a system repair disc is when you first set up your computer.
Answer the following statement true (T) or false (F)
According to the principle of ____, data fields should usually be private, and a client application should be able to access them only through the public interfaces, that is, through the class's public methods.
A. function hiding B. data hiding C. data encapsulation D. data definition
The ________ option adjusts the width of each column in the table to the best fit based on the contents in the cells
A) AutoCorrect B) AutoStyle C) AutoFormat D) AutoFit Contents
COGNITIVE ASSESSMENT Which of the following statements is not true about intellectual property rights?
A. The term fair use refers to the rights which creators are entitled for their work. B. Intellectual property refers to unique and original works such as ideas, inventions, company logos, and more. C. A copyright protects any tangible form of expression. D. Digital rights management is a strategy designed to prevent illegal distribution of digital content.