Java: Can overloaded methods be overridden too?

Community ForumCategory: JavaJava: Can overloaded methods be overridden too?
matheusdba Staff asked 12 months ago

Can overloaded methods be overridden too?

1 Answers
matheusdba Staff answered 12 months ago

Yes, derived classes still can override the overloaded methods. Polymorphism can still happen. Compiler will not binding the method calls since it is overloaded, because it might be overridden now or in the future.