package JavaTrainingTask.Question10; import java.util.*; public class Circle extends shape{ int length,width,depth,volume; Scanner obj; Circle() { System.out.println("Circle object is created!"); length=0; width=0; depth=0; volume=0; obj=new Scanner(System.in); } @Override void volumeCalculation() { System.out.println("Enter The length of Circle:"); length=obj.nextInt(); System.out.println("Enter The Width of Circle:"); width=obj.nextInt(); System.out.println("Enter the depth of Circle:"); depth= obj.nextInt(); volume=length*width*depth; System.out.println("volume of circle is:"+volume); if(volume<=10) { System.out.println("Extra Small 10cm"); } else if(volume>10 && volume<=25) { System.out.println("Small 25cm"); } else if(volume>25 && volume<=75) { System.out.println("Medium 75cm"); } else if(volume>75 && volume<=100) { System.out.println("Large 100cm"); } else if(volume>100 && volume<=250) { System.out.println("Extra large 250cm"); } else if(volume>250) { System.out.println("Extra Extra large greater then 250cm"); } } }