One of the benefits of using a constructor over a method is that you can be assured the constructor was called and the work within the constructor was performed . The language specifies that to construct an object a constructor must be called.
One of the benefits of using a constructor over a method is that you can be assured the constructor was called and the work within the constructor was performed . The language specifies that to construct an object a constructor must be called.