EXERCISES

  1. What is the difference between static and dynamic binding?
  2. Differentiate between early binding and late binding.
  3. Object-oriented programming is programming with Polymorphism. Justify this with a good example.
  4. Can a derived class pointer point to base class object? Can a base class pointer point to derived class object?
  5. How is polymorphism achieved at run time? Explain with C++ coding.
  6. Explain the use of virtual functions with an example in the situation, where base class pointer points to derived class object.
  7. Write down all the rules with respect to virtual functions.
  8. What are pure virtual functions? Can classes having such functions be instantiated?
  9. What are abstract classes? Can such classes be instantiated?
  10. 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.