inheritance

Write a program in java to find out area of rectangle and volume of cuboid using inheritance?

import java.util.Scanner; class Find {                 int length,width,height;                 public void area()                 {                                 System.out.println(“Area of Rectangle “+length*width);                …

Read More