Reputation: 121
when designing a class diagram, is there any compulsion to have parent class on the top of the child class or it does not matters if the parent class is in the right left or anywhere.?
Upvotes: 0
Views: 787
Reputation: 1462
When I reverse the log4J java code the UML class diagram layout automatically put children under.
I suppose the layout has a logic which respect specifications.
Upvotes: 0
Reputation: 499352
So long as you have the right links between the different classes, you can place the parent wherever you want.
In small diagrams, traditionally one placed the parent above the child classes.
Upvotes: 1
Reputation: 7779
Ideally its better to have a parent class above the child class in the UML class diagram, but sideways is okay if you've space and layout issues. If you're using a software to generate the diagrams then they figure out how to put the parent at the top pretty well.
Upvotes: 0