I defined an interface:
public Interface A
{
foo(String criteria)
}
Can I rename the parameter name in the implementing class?
final public B implements A
{
foo(String name)
}
Thanks!
Sure you can. The variable (parameter) name is not part of the method signature.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With