Programming Homework Help
Programming Homework Help. Explain the following expressions
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) Explain how this could be the result of coercion, using no overloading.
(b) Explain how this could be the result of overloading, using no coercion.
(c) Explain how this could be the result from a combination of overloading and coercion.
(d) Explain how this could be the result from subtype polymorphism, with no overloading or
coercion.