Lab8Objects

Lab8Objects - Lab8: Objects Description This lab has two...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab8: Objects Description This lab has two parts. In the pre-lab, you will write out the instance variables, method signatures, and comments for two classes that are described below. During lab, you will fill in the implementation of the methods. Pre-Lab - Object skeletons Write out the skeleton of two objects: Circle and Cylinder. The Circle class takes the radius as an input to its constructor. It has two methods - getArea and getPerimeter. They calculate the area and perimeter of the Circle, given the radius that was passed into the constructor. The Cylinder class takes two arguments into its constructor - the height of the cylinder and the radius. It has two methods - getSurfaceArea and getVolume. In lab, you will be testing your class implementing with the code at the bottom of this lab. Take a look at it, because it will help you determine the inputs and return types of the methods. Recall from when we first learned about variables that there are some
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Lab8Objects - Lab8: Objects Description This lab has two...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online