Question: Consider the class Ordered Pair as , given in Listing J 1 - 2 . Suppose that we did not use a generic type, but
Consider the class Ordered Pair as given in Listing J Suppose that we did not use a generic type, but instead omitted and declared the data types of the private fields, Method parameters, local variable to be Object instead of T What would the effect of These changes be on the use of the class?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
