1. True or False: A method cannot return a reference to an object.
2. True or False: You can declare an enumerated data type inside a method.
3. True or False: Enumerated data types are actually special types of classes.
4. True or False: enum constants have a toString method.
5. A pet store sells dogs, cats, birds, and hamsters. Write a declaration for an enumerated data type that can represent the types of pets the store sells.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here