Credit Suisse Interview Question: What is polymorphism? What is... | Glassdoor

Interview Question

IT Summer Analyst Interview(Student Candidate) New York, NY

What is polymorphism? What is the difference of dynamic and

  static polymorphism?
Answer

Interview Answer

2 Answers

0

polymorphism, along with encapsulation and inheritance, are the main qualities of object oriented programming languages. Polymorphism basically means that a function/variable/object can behave differently based on context, and can take multiple forms

CSfreshman on Jan 26, 2012
0

Dynamic polymorphism means the polymorphism happens at runtime; static polymorphism, on the other hands, compile time.

For C++, it is virtual member function vs. non virtual.

For Java, all member functions are implicitly virtual and so only dynamic polymorphism is possible in Java.

HC on Oct 1, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.