Suppose we have two constructors for a class, one that passes in parameters and one that doesn’t. Which of the following is true?

A. Because we have two constructors when there should only be one, we will get a compiler error when we try to compile the program.
B. The client will be able to use the constructor that passes in parameters, but the client will not be able to use the constructor that doesn’t pass in parameters.
C. The client can use either one of these constructors, whichever one suits his/her needs.
D. It would be extremely poor programming practice for the client to use the constructor that passes in no parameters.


C

Computer Science & Information Technology

You might also like to view...

The digital certificate is not unique to an individual user.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

To begin to create a copy of a button, right-click the button, and then click ____ to open the Duplicate Symbol dialog box.

A. Copy B. Another Button C. Duplicate D. New Button

Computer Science & Information Technology

A(n) ____________________ is out of bounds when it is not in the range of acceptable values.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Generally, slides will be easiest to read when a light text is placed on a darker background

Indicate whether the statement is true or false

Computer Science & Information Technology