extends in java
 i have make simple java program to find volume.first i have use extends then it will run but after without extends it will not run. can we also run same program without extends? 
extends in java
===

 i have make simple java program to find volume.first i have use extends then it will run but after without extends it will not run. can we also run same program without extends? 