Box Example UML Diagram

To Examples

UML Diagram for Box Example

 

Rectangle

- width : int  
- height : int  

+ Rectangle(int , int)  
+ getWidth( ) : int  
+ getHeight( ) : int  
+ getArea( ) : int  
+ toString( ) : String
+ S main(String[ ])
 
Box

- depth : int  

+ Box(int, int, int)  
+ getDepth( ) : int  
+ getVolume( ) : int  
+ toString( ) : String
+ S main(String[ ])