Object Oriented Programming Using C++ - Section 8 Multiple Questions and Answers.
Exercise Questions ::
Object Oriented Programming
16. | Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access |
| |
| A. | public members of Base |
| B. | protected members of Base |
| C. | private members of Base |
| D. | public members of Derv |
|
|
Published by:Michael Daani
Published by:Michael Daani
Published by:Michael Daani
Published by:Michael Daani
20. | Which of the following is a valid condition for an if statement? (The condition should be both syntactically and logically valid.) |
| |
| A. | (age) > 65 |
| B. | (age > 0 and < 10) |
| C. | (sales > 500 && < 800) |
| D. | (sales > 100 && sales <= 1000) |
|
|
Published by:Michael Daani
«»