A constructor is used to initialize the state of an object . A method is used to expose the behavior of an object. A constructor must not have a return type. A method must have a return type.
A constructor is used to initialize the state of an object . A method is used to expose the behavior of an object. A constructor must not have a return type. A method must have a return type.