Robby
10/01/2020, 1:52 PMVampire
10/01/2020, 1:55 PMNumber
is superclass of both, Double
and Int
(as well as Long
, Short
, Float
and Byte
).
So if you have a Number
typed variable, you can assign any number to it.Robby
10/01/2020, 3:21 PM