Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: Explain the concept of polymorphism in object-oriented programming.
Answer: Polymorphism allows objects of different types to be treated as objects of a common type. It includes method overloading and method overriding.

Example:

Method overloading: Same method name with different parameters. Method overriding: Subclass provides a specific implementation of a method defined in its superclass.
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook