What is polymorphism in oops?
If the class is designed in such a way that the methods with same and with different parameters provided then the depending the input values each method gets executed as per the input provided and gives the appropriate output as given in each different method though has same name of the method in that class. Poly means many with similar, ..Having multiple input will get multiple methods gets multiple output, as given accordingly.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the example of polymorphism?
Write a program to get the binary tree.
to find out the minimum of two integer number of two different classes using friend function
What are the types of abstraction?
What is and I oop mean?
what is the drawback of classical methods in oops?
What is persistence in oop?
//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }
What are the 3 pillars of oop?
What do you mean by binding of data and functions?
class type to basic type conversion
What is a friend function & its advantage?