Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 396 Bytes

File metadata and controls

7 lines (5 loc) · 396 Bytes

Inheritance-GUI---java

Demonstrating drawing simple shapes in Java, using abstract classes & inheritance. The class MyShape is an abstract class which defines the common of all shapes. The class MyBoundedShape is an abstract class which defines the common to the shapes which have area (not lines). The classes MyLine, MyOval & MyRectangle represent line, oval & rectangle respectively.