go to previous page   go to home page   go to next page highlighting

Answer:

Typically you need access methods for each instance variable, a getter and a setter for each. Also a toString() method should be included.


Specifications for the Cone class

Here is the complete design:



Cone

A class that represents a right circular cone

Variables

Constructor

Methods


The set methods may be used to change the values in selected instance variables and get methods may be used to access the values. (More on this later.)


QUESTION 4:

Is this design enough to start coding?


go to previous page   go to home page   go to next page