It's not just an override - it's a combination of an override and an overload that you do.
You've overridden the func function, including all of its overloads. You cannot call any of A's func methods from a B instance, since they're all hidden by overriding the func method.
This would work though :