Question: 1)Define responsibility and distinguish between an action responsibility and a knowledge responsibility. 2) In C++, a class member function must be declared to be ____________________
1)Define responsibility and distinguish between an action responsibility and a knowledge responsibility.
2) In C++, a class member function must be declared to be ____________________ in order to obtain dynamic binding of the function to an object.
3) If class A is directly above class B in an inheritance hierarchy, then A is known as a(n) ____________________ of class B.
4) A(n) ____________________ diagram is a picture that emphasizes the public operations that are available to clients of a class.
5) True or False? An inheritance hierarchy gives a visual picture of has-a relationships.
6) The OOP term "message passing" corresponds to a(n) ____________________ in C++.
7) True or False? In object-oriented design, the solution domain is the set of objects in the real-world problem that is being modeled.
8) In C++, a class X is said to be a(n) ____________________ base class of Y if the public operations of X are also public operations of Y.
9) True or False? In C++, a derived class's constructor is executed before its base class constructor is executed.
10) The loss of data that occurs when a descendant class object is copied to an ancestor class object is called the ____________________ problem.
11) True or False? In C++, if class X is a base class of class Y, then Y cannot directly access X's private data.
12) True or False? Structured design (functional decomposition) begins by identifying the major actions to be performed, whereas object-oriented design begins by identifying the major objects and operations.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
