I had a function in Java with method signature
public void myMethod (int someInt, String someString)
in my abstract class and I had over-
The reason the override doesn't work is because Integerand int are two different things. Integer is an object, whereas int is a primitive type. Java does the implicit typecasting for you. For example:
int myInteger = new Integer(5);
Will create a primitive int type called myInteger with a value of 5. As the Javadoc says,
"The
Integerclass wraps a value of the primitive typeintin an object."