A friend function can be used to
allow one class to access an unrelated class.
In C++, a friend function is declared inside a class and is given access to that class's private and protected members.
A single function can be a friend of two unrelated classes, which lets it bridge them and work with the private data of both.
Friendship must be granted inside the class source, so it cannot open classes whose code is unavailable.
Hence, allow one class to access an unrelated class.
Which of the following statement is not True?
How to express that some person keeps animals as pets ?
What is true about UML stereotypes ?
Which of the following is not a member of class ?
Which of the following differentiates between overloaded functions and overridden functions ?
All the classes necessary for windows programming are available in the module :
Superficially the term “object-oriented”, means that, we organize software as a
The “part-whole”, or “a-part-of”, relationship in which objects representing the components of something associated with an object representing the entire assembly is called as
The pure object oriented programming language with extensive metadata available and modifiable at run time is
Match the following w.r.t. programming languages :
| List - I | List - II |
| (a) JAVA | (i) Dynamically object oriented |
| (b) Python | (ii) Statically Non-object oriented |
| (c) Prolog | (iii) Statically object oriented |
| (d) ADA | (iv) Dynamically non-object oriented |
Codes :
Which operator is used for dynamic memory allocation in C++?
Which statements is correct regarding main () function in C++?
I. It is a user defined function.
II. It is a pre-defined function.