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

Please only answer if you actually know the answers. Positive rating will only b

ID: 3647821 • Letter: P

Question

Please only answer if you actually know the answers. Positive rating will only be received if answers are correct. Thanks!

40. It is a good idea to make a copy constructor's parameters
__________ by specifying the _________ keyword in the
parameter list.

A. inline, inline
B. static, static
C. constant, const
D. global, global
E. None of these

____ 41. _________ allows us to create new classes based on existing
classes.

A. Polymorphism
B. Inheritance
C. Function overloading
D. The copy constructor
E. None of these

____ 42. When you derive a class from an existing class, you _________
add new data and functions.

A. may never
B. may sometimes
C. may
D. None of these

____ 43. The base class access specification determines how ___________
members in the base class may be accessed by derived classes.

A. private
B. public
C. protected
D. a, b, and c
E. None of these

____ 44. _________ members of a base class are never accessible to a
derived class.

A. Public
B. Private
C. Protected
D. a, b, and c
E. None of these

____ 45. The ________ constructor is called before the _______
constructor.

A. base, derived
B. derived, base
C. public, private
D. private, public
E. None of these

Explanation / Answer

D. global, global A. Polymorphism A. may never D. a, b, and c C. public, private