How to mock delegate constructors?

Why would a user want to create multiple constructors?

  • a. Multiple constructors are easier to write than a single constructor. b. The Java compiler expects multiple constructors. c. Multiple constructors give the client more flexibility in creating instances. d. Programs with multiple constructors are easier to read than a single constructor.

  • Answer:

    c. More constructors make it so that objects may be created using a different assortment of values. They are not always easier, java doesn't care even if there is a constructor, and it might even make it harder to read.

JayDave at Yahoo! Answers Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.