
Long questions with answers for this topic
A friend function is a non-member function that can access a class’s private/protected members.
No. A friend function is not a member of the class.
A static data member is shared by all objects (one common copy).
this points to the current object calling the member function.
Implicit conversion is automatic conversion performed by the compiler.
To access/modify static members like an object counter using ClassName::func().
A friend function can access private/protected members though it is not a class member. Characteristics (any two):
.)this pointerUsed in operator overloading and external helper functions.
Sign in to access the all questions and answers
It's free and takes just 5 seconds