Advertisements
Advertisements
Question
Explain the following concept related to object oriented programming:
Polymorphism
Explain
Advertisements
Solution
- Polymorphism means “many forms.” It allows the same function or method name to perform different tasks.
- It enables one interface to be used for different data types or objects.
- Polymorphism improves the flexibility and reusability of code.
- It is mainly of two types:
- Compile-time Polymorphism (Method Overloading)
- Run-time Polymorphism (Method Overriding)
- It helps in implementing the concept of dynamic behavior in programs.
shaalaa.com
Is there an error in this question or solution?
2024-2025 (July) Official Board Paper
