What is polymorphism ? Explain with examples

Answer Posted / nisha

Polymorphism means one name,many properties.Example of
polymorphism is function overloading whare we can have many
functions with same name but having different properties
like the number of arguments in the function header.

Is This Answer Correct ?    43 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is ambiguity in inheritance?

617


is there any choice in opting subjects like 4 out of 7

1723


What is difference between class and object with example?

555


Why it is called runtime polymorphism?

571


What is multilevel inheritance explain with example?

619






What is coupling in oop?

585


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2565


write a program that takes input in digits and display the result in words from 1 to 1000

1979


How to call a non virtual function in the derived class by using base class pointer

5241


explain sub-type and sub class? atleast u have differ it into 4 points?

1826


What is object in oops?

606


write knight tour problem which is present in datastructure

2155


What is the oops and benefits of oops programming?

544


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1135


Who invented oop?

644