Object Oriented Programming Using C++ - Section 6 Multiple Questions and Answers.
Exercise Questions ::
Object Oriented Programming
26. | Which is true? |
| |
| A. | Coincidental cohesion is stronger than procedural cohesion |
| B. | Logical cohesion is stronger than coincidental cohesion |
| C. | Sequential cohesion is weaker than temporal cohesion |
| D. | The weakest cohesion is functional |
|
|
Published by:Michael Daani
Published by:Michael Daani
28. | A function in a derived class that has the same name as a function in the parent class _____ |
| |
| A. | will cause an error message to display |
| B. | will override the base class function |
| C. | will be overridden by the base class function |
| D. | will execute immediately after the base class function executes |
|
|
Published by:Michael Daani
Published by:Michael Daani
30. | When you instantiate a derived class object, a constructor for the derived class _____ |
| |
| A. | is not called |
| B. | is called prior to the base class constructor |
| C. | is called simultaneously with the base class constructor |
| D. | None of the above |
|
|
Published by:Michael Daani
«»