Friend functions can access private and protected members of a class.
Answer Posted / 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 View All Answers
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
Explain dangling pointer.
Is c++ free?
What is a breakpoint?
What is prototype for that c string function?
What does it mean to declare a member variable as static?
Where must the declaration of a friend function appear?
Can we use pointers in c++?
What is the difference between a declaration and a definition?
What is constructor and destructor in c++?
Can I make ios apps with c++?
What is the difference between containment and delegation?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
What is c++ mutable?
What happens if a pointer is deleted twice?