EXERCISES
  1. What is a class in C++? How does it compare with structure in C?
  2. Define the following terms with the help of meaningful examples:
    1. Objects
    2. Class
    3. Method
    4. Encapsulation
  3. What are access specifiers? List all the three access specifiers and discuss their advantages and disadvantages.
  4. Explain what are merits and demerits of passing objects as a value parameter?
  5. Explain what are merits and demerits of passing objects as a variable parameter?
  6. What are inline functions? What are the advantages of inline functions?
  7. Explain with an example the use of “Friend” function.
  8. What are friend functions? What are its implications on information hiding?
  9. What are static class members? What are their advantages and disadvantages?
  10. Can a function return 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.