During overriding a method covariant return types is allowed to get a valid override. Is there any similar rule for the arguments of the method as well?
For eg.
public void function(Object o); - Super class
public void function(AnyClass ac); - Sub class
Does the above is a valid override or is it a overload or an error.
It's plain old overload. Don't forget that if there is a class/subclass relationship, then the method with most specific parameter type will be called.