Computer Applications
Define Polymorphism.
OOP Intro Java
32 Likes
Answer
In object-oriented programming, Polymorphism provides the means to perform a single action in multiple different ways. Taking the real world example of animals, if we ask different animals to speak, they respond in their own way. Dog barks, duck quacks, cat says meow and so on. So the same action of speaking is performed in different ways by different animals.
Answered By
21 Likes
Related Questions
Object Oriented Programming is an approach to standarise the program by creating partitioned memory area for both data and functions. It does not allow data to flow freely from one function to other. In this system, the complete problem is decomposed into a number of entities called objects. Some of the object oriented principles are given in the box as below:
Polymorphism Encapsulation Inheritance Abstraction Pick an appropriate principle for each of the descriptions given below:
(a) It allows deriving a new class from existing class. The new class will have combined features of both the classes.
(b) It promotes function overloading which is using a number of functions/methods with the same name but with different parameters.
(c) It allows grouping or merging data and functions as a unit such that the data of a particular object is used in the associated functions.
(d) It is using some external components without knowing the internal mechanism.
Which of the following can flow freely in Procedure Oriented Programming languages ?
- function
- data
- statement
- instruction
Which is not an Object Oriented Programming language?
- Python
- Eiffel
- Small talk
- COBOL
In assembly language, the instructions are given in terms of 0's and 1's.