C++ Classes and Objects Questions and Answers
11. |
The members of a class are accessed using .......... |
|
- A. dot operator
- B. new operator
- C. size of operator
- D. + operator
|
12. |
A member function calling another function directly is called as |
|
- A. inline functions
- B. recursive functions
- C. friend functions
- D. nesting functions
|
13. |
Which of the following is a way to bind the data and its associated functions together? |
|
- A. data
- B. functions
- C. methods
- D. class
|
14. |
Which of the following is not a valid class specifier? |
|
- A. public
- B. private
- C. protected
- D. pointer
|
15. |
The member function of a class can receive arguments of .......... |
|
- A. C++ data type only
- B. C++ data type or object data type
- C. Only object data type
- D. None of these
|