Discussion
What is polymorphism in OOP ?
Answer: A
Polymorphism is the ability of an object to take many forms.
The word means 'many forms'. In OOP, one interface can be used with objects of different types, and the method that runs depends on the actual object, as when a base-class reference calls an overridden method in a subclass, or one method name is overloaded for different arguments.
Defining a method in a child class is overriding, one way polymorphism is achieved. Inheritance is a separate concept, and access to private data is governed by encapsulation.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development