Is overloading done at compile time or run time?

1 answer

Answer

1010627

2026-07-08 10:41

+ Follow

Overloading will be done at compile time itself.

Proof: If you try to narrow down the access modifier for a method from public in the parent class to private in the child class while overloading, the compiler will not let you do it.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.