Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Re: What difference does an additional constructor make to your program?

    An immutable class would not have setters because it is not allowed to change the contents of an immutable class. getters would be allowed. See the String class for an example.
  2. Re: What difference does an additional constructor make to your program?

    One benefit would be to make the class immutable. Once it was created via a constructor, its contents would not be changeable via setter methods.
Results 1 to 2 of 2