Class and Objects
Class and Objects
Exercises
Fill in The Blanks
11. Local classes can use any global variable but with ____
13. ____ function and ___ classes breaks the rules of the data
hiding in C++.
14. Keyword friend is used in function ____ but not in
function____
15. friendship are______
7. All the member functions defined outside the class are inline
8. All objects of the class share its member functions
11. Static and non static member functions in the same class
which same names and same number and types of the
arguments is possible.
10. Static variables are associated with the class itself rather than
with any class object, they are also known as…………….
A) class variables
B) object variables
C) function variables
D) internal variables
18. If a member function does not alter any data in the class, that
may be declared as ………………..
A) constant member function
B) private member function
C) static member function
D) friend function