Friend functions can access private and protected members of a class.
Answer / nashiinformaticssolutions
Virtual destructors ensure proper cleanup of resources in derived classes when deleting through a base class pointer.
| Is This Answer Correct ? | 0 Yes | 0 No |
Should I learn c++ c?
How can you find the nodes with repetetive data in a linked list?
What is the use of endl?
What is a virtual destructor? Explain the use of it?
What is friend class in c++ with example?
What is Object Oriented programming.what is the difference between C++ and C?
What are the three forms of cin.get() and what are their differences?
What is data abstraction? How is it different from data encapsulation?
When we use Abstract Class and when we use Interface?where we will implement in real time?
What problem does the namespace feature solve?
Difference between strdup and strcpy?
What is object in c++ wikipedia?