1. Why should you define a method toString in the classes you create?
2. If you define a parameterized constructor for a class, must you define a default constructor? Explain.
3. Implement a class Counter whose objects count things. An object of this class records a count as a nonnegative integer. Include methods to set the counter to 0, to increase the counter by 1, and to
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here