Universal Integer

Report a typo

Your colleagues came to you with an idea to create a UniversalInteger class. The objects of the class can be compared with themselves and objects of any other integer classes: Byte, Integer, and Long. The code snippet that illustrates their idea is:

class UniversalInteger implements Comparable<UniversalInteger>, 
                                  Comparable<Byte>, 
                                  Comparable<Integer>, 
                                  Comparable<Long> {

    // a body
}

What would you say to them?

Select one option from the list
___

Create a free account to access the full topic