Answer Posted / amol shevkari
Polymorphism is an concept of OOPS.
Polymorphism allows a client to treat different objects in
the same way even if they were created from different
classes and exhibit different behaviors.
Ex.Traffic Signal->>>>Whenever red signal is glow,the all
different type of braking systems works.i.e.all vehicles of
braking system but there implementation is different and
purpose is same.
| Is This Answer Correct ? | 130 Yes | 44 No |
Post New Answer View All Answers
What is abstract class in oops?
What is abstraction with example?
What is difference between abstraction and encapsulation?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
How do you define a class in oop?
What is basic concept of oop?
What is the types of inheritance?
Why do pointers exist?
What is overloading in oops?
What are the components of marker interface?
What is polymorphism and types?
What is the example of polymorphism?
What is encapsulation in oops?
What is a class and object?
What is encapsulation in simple terms?