Friend functions can access private and protected members of a class.



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

Post New Answer

More C++ General Interview Questions

What does namespace mean in c++?

0 Answers  


What is the benefit of encapsulation?

0 Answers  


Explain linear search.

0 Answers  


Should I learn c++ c?

0 Answers  


When should you use global variables?

0 Answers  


what is difference between internet and Internet?

12 Answers   College School Exams Tests, Microsoft, MIT, TCS,


What are put and get pointers?

0 Answers  


What is encapsulation in c++ with example?

0 Answers  


How does work in c++?

0 Answers  


Is oops and c++ same?

0 Answers  


What is namespace & why it is used in c++?

0 Answers  


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

0 Answers  


Categories