I want to create a method that compares a number but can have an input that is any of the subclasses of Number.
I have looked at doing this in the following manner..
in this case you can use an ordinary method without generics