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 |
Explain the pure virtual functions?
What is the output of printf("%d")?
58 Answers CTS, HCL, Infosys, TCS, Winit, Wipro,
Can turbo c++ run c program?
What is the main function c++?
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
How do you define a class in c++?
What are the types of array in c++?
List down the guideline that should be followed while using friend function.
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
What is the best book for c++ beginners?
What are the effects after calling the delete this operator ?