circle.h eas230

circle.h eas230 - } double Circle::getArea( ) { return...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
class Circle { public: Circle( double newRadius ); double radius; double getArea( ); double getCircumference( ); } ; Circle::Circle( double newRadius ) { radius = newRadius;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } double Circle::getArea( ) { return (radius * radius * 3.14159); } double Circle::getCircumference( ) { return (2 * radius * 3.14159); } ;...
View Full Document

Ask a homework question - tutors are online