Polymorphism with an example?

Answer Posted / anil

polymorphism means implementing different functionality's
with the same name and different type of arguments and
different number of parameters.We can achieve polymorphism
using function overloading and function overriding.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 pillars of oop?

881


What are classes oop?

804


What is an example of genetic polymorphism?

885


What is abstract class in oop?

759


What are oops functions?

793


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1999


What are the two different types of polymorphism?

910


Can we define a class within the interface?

802


What is encapsulation c#?

824


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

2200


What is the real time example of encapsulation?

809


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1921


Which is not an object oriented programming language?

752


What is pointer in oop?

743


What is destructor oops?

858