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
You might also like to view...
The ________ is a software store where OS X developers can list and sell software through a centralized marketplace
A) iTunes store B. App Store C. Apple Store D. Mac Store
The height of binary trees can be mathematically predicted.
Answer the following statement true (T) or false (F)