I have this problem for homework, and do not understand why you would want to create an extra file for doing something else... why not just import it? is it so nobody can edit, and mess up your program? or does it make it easier to modify/tact on code to your program? here is my problem:
"Design and implement a set of ciasses that define a series of
three-dimensional geometric shapes. For each, store fundamental data about their size and provide methods to access and modify this data. In addition, provide appropriate methods to compute each shape's circumference, area, and volurne. In your design, consider how shapes are related and thus where inheritance can be implemented. Greate a mai n driver dass to instantiate several shapes of differing types and exercise the behavior you provided."
I understand how to solve it. It's just trying to figure out what I would put in my interface class.
Thanks in advance.