Advertisements
Advertisements
प्रश्न
Explain the following concept related to object oriented programming:
Polymorphism
स्पष्ट कीजिए
Advertisements
उत्तर
- 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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2024-2025 (July) Official Board Paper
