Recent Changes - Search:

Test

edit SideBar

ClassMixtures2

Develop data definitions and classes for a collection of 3D shapes. The collection includes:

  • cubes whose relevant property is the length of an edge;
  • prisms which are triangular solids and whose relevant properties are length, and 3 sides;
  • spheres whose relevant property is the radius.

Develop the function volume. The function consumes a 3D shape and produces the volume of the object.

transition to classes with methods

Edit - History - Print - Recent Changes - Search
Page last modified on September 28, 2010, at 03:09 PM