What is a friend function in c++?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• A non-member function that has access to the private and protected members of a class. Declared using the friend keyword.
| Is This Answer Correct ? | 0 Yes | 0 No |
• A non-member function that has access to the private and protected members of a class. Declared using the friend keyword.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you mean by early binding?
Explain how overloading takes place in c++?
Will rust take over c++?
Differentiate between a constructor and a destructor in c++.
Explain deep copy and a shallow copy?
How does java differ from c and c++?
Differentiate between a copy constructor and an overloaded assignment operator.
What is the difference between a definition and a declaration?
In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.
What do you mean by “this” pointer?
Explain mutable storage class specifier.
What does the linker do?