Consider an unknown language with integer and real types in which 1+2, 1.0+2, 1+2.0, and 1.0+2.0 are all legal expressions.
a. Explane how ths could be the result of coercion, using no overloading.
b. Explane how this could be the result of overloading, using no coercion.
c. Explane how this could result from a combination of overloading and coercion.
d. Explane how this could result from subtype polymorphism, with no overloading or coercion.
Content will be erased after question is completed.
Enter the email address associated with your account, and we will email you a link to reset your password.
Forgot your password?