Create an application with four classes. Three of the classes should contain data and behavior characteristics for circle, rectangle, and cylinder. You could extend your solution to problem number 6 and provide behaviors based on the type of object instantiated. For example, in addition to calculating the area of a circle, also provide methods to calculate circumference or radius. For the rectangle, consider providing behaviors to calculate perimeter and the polygon diagonals. For cylinder, consider providing behaviors to calculate the volume and surface area for a closed cylinder. The fourth class should allow the user to input a figure type from a menu of options. Prompt for appropriate values based on the inputted figure type, instantiate an object of the type entered, and display characteristics about the object.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here