Question-53: What is Runtime Polymorphism?
Answer:
Question-54: Can you achieve Runtime Polymorphism by data members?
Answer:
No.
Question-55: What is the difference between static binding and dynamic binding?
Answer:
In case of static binding type of object is determined at compile time whereas in dynamic binding type of object is determined at runtime.
Answer:
- Runtime polymorphism or dynamic method dispatch is a process in which a call to an overridden method is resolved at runtime rather than at compile-time.
- In this process, an overridden method is called through the reference variable of a superclass. The determination of the method to be called is based on the object being referred to by the reference variable.
Question-54: Can you achieve Runtime Polymorphism by data members?
Answer:
No.
Question-55: What is the difference between static binding and dynamic binding?
Answer:
In case of static binding type of object is determined at compile time whereas in dynamic binding type of object is determined at runtime.
No comments:
Post a Comment