Write a class called cylinder the constructor to cylinder


Write a class called Cylinder. The constructor to Cylinder should initialize two attributes: radius, height. Write a method called: getVolume() which should return the volume of the Cylinder.

Formula to use:

3.14*radius^2*height

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a class called cylinder the constructor to cylinder
Reference No:- TGS02512036

Now Priced at $10 (50% Discount)

Recommended (94%)

Rated (4.6/5)