Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Original Hierarchy: New Hierarchy:
- Action Action
- | |
- | BaseA
- (old)ClassA |
- +--------+----------+
- | | |
- ClassB (new)ClassA ClassC
- enum Operation {
- ADD, DELETE;
- }
- ...
- Operation operation = determineOperation(form);
- if (operation == Operation.DELETE) {
- doDelete(form);
- } else if (operation == Operation.ADD) {
- doAdd(form);
- }
Add Comment
Please, Sign In to add comment