Another name for method overloading is compile-time polymorphism.
Explanation:
- Method Overloading: It refers to having multiple methods in the same class with the same name but different parameter lists (i.e., different type, number, or both). The appropriate method is selected at compile time based on the method signature.
- Compile-Time Polymorphism: This term emphasizes that the method to be called is determined at compile time, making it a form of polymorphism that occurs during the compilation process rather than at runtime. Hence, method overloading is also referred to as compile-time polymorphism.