overriding isn`t correct? isn't
Because the method overriding occurs if the method contains the same method signature including the method name and the parameter list
So that it is method overloading.
For the method overloading, according to your situation, the method of subclass will do the type casting to be a bigger one(int to long 32-->64)
if the subclass can do it,the action will be done if the data size is smaller than the origin.But the action will not be done if data size is bigger than the origin, then,it will search superclass whether contains the same method signature or not.
You can
test the following
If it is wrong,please feel free to remind me.
