good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^3: The Accessor Heresyby dragonchild (Archbishop) |
on Nov 28, 2005 at 19:02 UTC ( [id://512329]=note: print w/replies, xml ) | Need Help?? |
Square isa Rectangle isa Polygon
Not quite. Square is both a Rectangle and a Rhombus, both of which are Parallelograms which isa Quadrilateral which isa Polygon. In addition, Square->is_regular_polygon() is true where none of the other classes mentioned in this listing can make that claim. is_regular_polygon() would be a method of Polygon. My criteria for good software:
In Section
Meditations
|
|