What is Polymorphism?
Answers were Sorted based on User's Feedback
Answer / tejas
The ability to take more than one form is known as
polymorphism.
Is This Answer Correct ? | 18 Yes | 3 No |
Answer / mahendran a
Polymorphism is the mechanism used to decouple the caller of
a functionality or sender of a message and the actual
implementation that serves by without necessitating the
client knowing about the actual implementor &
implementation/response.
Is This Answer Correct ? | 7 Yes | 6 No |
Answer / zain
In programming languages and type theory, polymorphism is the provision of a single interface to entities of different types. A polymorphic type is a type whose operations can also be applied to values of some other type, or types.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / shanti chouhan
The polymorphism is bunch of classes with different functionality and structure but all use the same interface
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dk
Polymorphism is a concept use in OOP to define or describe different methods with same name like I.e. move of bishop and move of queen in chess game both have to move by different way.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kumaranr
in which a class has all the state and behaviour of the
another class
Is This Answer Correct ? | 2 Yes | 4 No |
Answer / subrata
Polymorphism, according to the OO programming is the ability of objects belonging to different data types, to respond to the method call with the same name according to a type specific behavior.
Yeh, I know it is cryptic. But that is how it is. At the end, the interviewer will be confused so much so that - you are guaranteed to get in :)
Is This Answer Correct ? | 1 Yes | 5 No |
What is composition? Explain the purpose of composition.
What are the basic concepts of oop?
Describe inheritance and non-inheritance of a derived class?
What is the difference between public, private and protected access modifiers?
What is the difference between a class and a structure?
Can you create an instance for an abstract class?
If a method definition has been specified in class , its base class , and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?
Describe the Diamond problem. Where does this problem occur?
What is Abstract method and how different from Virtual Method?
What is meant by overloading functions and operators?
Differentiate between overloading and overriding.
What are Classes and Objects?