find out area of rectangle and volume of cuboid using inheritance

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

class Common {                 int l,b;                 public Common(int x,int y)                 {                                 l=x;                                 b=y;                 }                …

Read More

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