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
