Which of the following is not a member of class ?
Friend function
In C++, a member function is declared inside the class and is called through an object (or the class name for static members); it lies in the class scope.
A static function, a const function and a virtual function are all member functions: static members belong to the class as a whole, const members promise not to modify the object, and virtual members support runtime polymorphism.
A friend function is only granted access to the private and protected members of the class; although its declaration appears inside the class, it is a non-member function, has no this pointer and is called like an ordinary function.
Hence, the answer is Friend function.
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 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
A friend function can be used to
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.