EXERCISES
- What is the difference between static and dynamic binding?
- Differentiate between early binding and late binding.
- Object-oriented programming is programming with Polymorphism. Justify this with a good example.
- Can a derived class pointer point to base class object? Can a base class pointer point to derived class object?
- How is polymorphism achieved at run time? Explain with C++ coding.
- Explain the use of virtual functions with an example in the situation, where base class pointer points to derived class object.
- Write down all the rules with respect to virtual functions.
- What are pure virtual functions? Can classes having such functions be instantiated?
- What are abstract classes? Can such classes be instantiated?
- What is the use of an ...
Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.