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