Spread the love
  • 26
  • 5
  • 7
  • 2
  •  
  •  
  •  
  •  
  •  
  •  
    40
    Shares

Interface Shape in Java
Interface Shape in Java

Interface Shape in Java:

We get generic information about all geometrical shapes in AWT from Shape interface . Shape provides a bounding box-a rectangle in which the shape is enclosed.

The interface structure of Shape :


public abstract interface java.awt.Shape{
//method
public abstract Rectangle getBounds();
}
 

Spread the love
  • 26
  • 5
  • 7
  • 2
  •  
  •  
  •  
  •  
  •  
  •  
    40
    Shares

LEAVE A REPLY

Please enter your comment!
Please enter your name here