What is polymorphism in oops?



What is polymorphism in oops?..

Answer / padmas

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

Post New Answer

More OOPS Interview Questions

What is abstraction with example?

0 Answers  


char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output

9 Answers   Persistent,


1.explicit call for destructor 2.calling function inside a constructor. 3.base *b-new derived delete b; 4.delete p what it will delete. 5.size of base class and derived class int i,in base class and int j in derived. 6.int i-20 int main() { int i =5; printf("%d".::i); { int i =10; printf("%d".::i); } } 7.object slicing 8.new 9.function overloading(return type). 10.class base() { virtuval fun() { ----- } } class derivied:public base() { fun() { ----- } } int main() { derived d; } 11.how static function will call in C++? 12.default structures are in C++? 13.constructors should be in public . 14.virtuval constructor not exist. 15.multilevel inhritence. destructor order.

1 Answers   Tech Mahindra,


write knight tour problem which is present in datastructure

0 Answers  


Write a macro for swapping integers

5 Answers  


what is virtual function?

26 Answers   Aspire, HP, Infosys, RoboSoft, TCS,


which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean

2 Answers   HCL, Wipro,


What is the advantage of oop over procedural language?

0 Answers  


Can an interface inherit a class?

0 Answers  


What is balance factor?

0 Answers  


What are the data types in oop?

0 Answers  


explain dynamic binding by drowing

2 Answers   Cognizant,


Categories