Is it possible to develop the same program functionality without using
this interface? explain for me please!
Printable View
Is it possible to develop the same program functionality without using
this interface? explain for me please!
Which interface? You forgot to post the name of the interface.Quote:
Is it possible to develop the same program functionality without using
this interface?
Comparable interface. sr :D
What's wrong with using the Comparable interface?
Have you read the tutorial about interfaces?
I think that it’s possible, because Instead of setting the method compareTo of compareable interface, we can create comparable method in a class. right?
How do you tell a method that wants a Comparable object what it it getting?