If a member function of a class already provides all or part of the functionality required by a constructor or another member function then:

a. Copy and paste that member function’s code into this constructor or member function.
b. Call that member function from this constructor or member function.
c. That member function is unnecessary.
d. This constructor or member function is unnecessary.

b. Call that member function from this constructor or member function.

Computer Science & Information Technology

You might also like to view...

A ________ is a program module whose purpose is to test other modules by calling them.

A) stub B) driver C) main function D) dummy program E) pseudo code routine

Computer Science & Information Technology

What layers of a protocol stack are used on a router? A host?

What will be an ideal response?

Computer Science & Information Technology