Question: Write a method that receives two int and compare them if the first one is greater than the second one it returns true. What should
Write a method that receives two int and compare them if the first one is greater than the second one it returns true. What should be the name of the method. Write a method that receives two objects and compare do the same thing. What facilities (Class or Interface) you need? Use generic programming to do the same thing. Explain why you need generic programming when you can simply use polymorphism. (20 pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
