We want to initialize the data members of a class to some particular values that the client selects. To do this, we should write a:

A. default constructor
B. constructor that has parameters
C. constructor with const at the end of the function prototype
D. constructor that returns true or false, depending on whether or not the initialization could be done

B

Computer Science & Information Technology

You might also like to view...

A selection structure consists of a(n) __________ __________ together with one or more blocks of statements.

Fill in the blank(s) with correct word

Computer Science & Information Technology

The most popular contention-based protocol is ____.?

A. ?token ring B. ?round-robin C. ?carrier sense multiple access with collision avoidance (CSMA/CA) D. ?carrier sense multiple access with collision detection (CSMA/CD)

Computer Science & Information Technology