Set classes as something like Shape?
<p>Is there a way you can go about in java, writing code, to accomplish what Java has when it comes to the relationship between "Shape" and "Ellipse". </p>

<p>For example when you are drawing you create a Rectangle.</p>

<p>Then when you go to paint that rectangle it asks for a "Shape". I want to be able to make my own kind of thing for a program I am writing. It would just be more convenient if I could do that.</p>
