Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In a class, all the function members _____. must be public, and all the member v

ID: 3645593 • Letter: I

Question

In a class, all the function members _____.
must be public, and all the member variables must be private
must be public, and all the member variables must be public also
the member variables can be either public or private
must be private, and all the member variables must be public

4. Composition is when one or more members of a class are _____.
accessed by member functions of the same class
objects of another class type
defined in a separate file
created in a class-tester program

5. Which is the correct UML connector to designate inheritance?
C:Documents and SettingsMoDesktopcomp220Untitled-1_clip_image006.gif
C:Documents and SettingsMoDesktopcomp220Untitled-1_clip_image008.gif
C:Documents and SettingsMoDesktopcomp220Untitled-1_clip_image010_0000.gif
C:Documents and SettingsMoDesktopcomp220Untitled-1_clip_image012.gif

6. Aggregation is also sometimes called _____.
inheritance
instantiation
composition
encapsulation

7. Which of thwing statements is an accurate example of composition?
A car e.
A car is an automobile.
A car is an object.
A car has a class.

8. A derived class can redefine
a private member function class
a public member function of the base class
both public and private member functions of the base class
niether public nor private member functions of the base class

9. OOP implements ____.
UML
EIP
OOD
ipe

10. Which of the following base class members is never inherited by a delass, regardless of access attributes?
Mutator
Accessor
Constructor
Data

Explanation / Answer

the member variables can be either public or private objects of another class type C:Documents and SettingsMoDesktopcomp220Untitled-1_clip_image010_0000.gif composition A car has a class. both public and private member functions of the base class UML Data