How is it that polymorphism enables you to program “in the general” rather than “in the specific”? Discuss the key advantages of programming “in the general.”
What will be an ideal response?
Polymorphism enables the programmer to concentrate on the common operations that are applied to objects of all the classes in a hierarchy. The general processing capabilities can be separated from any code that is specific to each class. Those general portions of the code can accommodate new classes without modification. In some polymorphic applications, only the code that creates the objects needs to be modified to extend the system with new classes.
You might also like to view...
The UML distinguishes an interface from other classes by placing the word “interface” in above the interface name.
a) italics b) carets c) guillemets d) bold
Your e-mail client software transmits the message files from your Outbox to the mail server.
Answer the following statement true (T) or false (F)
Some apps are free, allowing you to download them without making a payment.?
Answer the following statement true (T) or false (F)
A user of a database such as that pictured in the accompanying figure refers to a field as what?
A. table B. column C. row D. relationship