+---------------+
| Shape3d |
+---------------+
| SurfaceArea() |<-------------------------------+
| Volume() | |
+---------------+ |
^ |
/ \ |
| |
+------------------------+-----------------------+ |
| | | |
+---------------+ +---------------+ +---------------+ |
| Cylinder | | Sphere | |CompositeShape | |
+---------------+ +---------------+ +---------------+ * |
| SurfaceArea() | | SurfaceArea() | | SurfaceArea() |--------+
| Volume() | | Volume() | | Volume() |
+---------------+ +---------------+ +---------------+
OpenGL and SVG use SurfaceArea() and Volume() to render these objects on their platforms. How will you enhance this code to include rendering these objects on following platforms?
- OpenGL
- SVG