One problem you often see when dealing with UML is that some developers don’t get the idea that what you see in class diagram should translate directly into code they draw a class diagram and write some code and neither bare any resemblance to each other. This, and other blog forthcoming blogs in the series, demonstrate the link between diagrams and code.
public enum Colour {
RED,
GREEN,
BLUE,
PURPLE,
YELLOW,
PINK,
BLACK,
WHITE;
}
No comments:
Post a comment