Chapter 9 Working with Object-Oriented Models
You can give each enum constant a different behavior by declaring an abstract method in the enum type and overloading it with a concrete method for each constant. In this case, each constant must overload the abstract method.
Manual correction | Automatic correction |
---|---|
Make sure each constant is associated with a concrete method that overloads the abstract method. | — |
Copyright (C) 2006. Sybase Inc. All rights reserved. |
![]() |