Time remaining:
Explain the following expressions

Programming
Tutor: None Selected Time limit: 0 Hours

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.

Apr 21st, 2015

a On the off chance that a capacity means diverse and possibly heterogeneous executions relying upon a restricted scope of independently determined sorts and blends, it is called specially appointed polymorphism. Specially appointed polymorphism is upheld in numerous dialects utilizing capacity over-burdening. 

b On the off chance that the code is composed without notice of any particular sort and subsequently can be utilized straightforwardly with any number of new sorts, it is called parametric polymorphism. In the article arranged programming group, this is frequently known as generics or bland programming. In the useful programming group, this is frequently just called polymorphism. 

 c Subtyping (or incorporation polymorphism) is an idea wherein a name may mean cases of various classes the length of they are connected by some normal superclass.

d In article arranged programming, this is regularly alluded to just as polymorphism.


Apr 21st, 2015

Are you studying on the go? Check out our FREE app and post questions on the fly!
Download on the
App Store
...
Apr 21st, 2015
...
Apr 21st, 2015
Dec 3rd, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer