# data[].attributes.body
Pathmahn Correction
Pathmahn Correction
public class Shape{

  protected double length;
  protected double width;
  private double area;

  public void setShape (double length,double width){

    this.length = length;
    this.width = width;
  }

  public void getArea(){

    area=length*width;
    System.out.println("Area = " + area);
  }


}
public class Rectangle extends Shape{

  private double height;
  private double volume;

  public void setRectangle(double height){

    this.height=height;
  }

  public void getVolume(){

    volume = super.length*super.width*height;

    System.out.println("Volume = " + volume);
  }

  public static void main(String[] args){

    Rectangle Rec = new Rectangle();

    Rec.setShape(40.0,50.0);
    Rec.getArea();

    Rec.setRectangle(60.0);
    Rec.getVolume();


  }


}

Naveen
Naveen
public class Shape
{
  protected double length;
  protected double width;
  private double area;

  public void setShape(double length,double width)
  {
    this.length=length;
    this.width=width;
  }
  public void getArea()
  {
    area=length*width;
    System.out.println("Area="+area);
  }
 }
public class Rectangle extends Shape
{
  private double height;
  private double volume;

  public void setRectangle(double height)
  {
    this.height=height;
  }

  public void getVolume()
  {

    volume=super.length*super.width*height;
    System.out.println("Volume="+volume);
  }

  public static void main(String[] args)
  {

     Rectangle obj=new Rectangle();

     obj.setShape(5.0,6.0);
     obj.getArea();

     obj.setRectangle(7.0);
     obj.getVolume();


  }
}
Pathmahn
Pathmahn
public class Shape{

  protected double length;
  protected double width;
  private double area;

  public void setShape (double length,double width){

    this.length = length;
    this.width = width;
  }

  public void getArea(double length,double width){

    area=length*width;
    System.out.println("Area = " + area);
  }


}public class Rectangle extends Shape{

  private double height;
  private double volume;

  public void setRectangle(double height){

    this.height=height;
  }

  public void getVolume(double length,double width,double height){

    volume = length*width*height;

    System.out.println("Volume = " + volume);
  }

  public static void main(String[] args){

    double x = 40.0;
    double y = 50.0;
    double z = 60.0;


    Rectangle Rec = new Rectangle();

    Rec.getVolume(x,y,z);
    Rec.getArea(x,y);



  }


}

ITS ME HILMI
ITS ME HILMI
public class Shape
{
	private double area;
	protected double length, width;

	public void setShape(double length, double width)
	{
		this.length = length;
		this.width = width;
	}
 
	public void getArea()
	{
		area = length*width; 
		System.out.print("Area is : " + area);
	}
}

public class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}

	public void getVolume(double length, double width)
	{
		volume = length*width*height;
		System.out.println("\nThe volume is : " + volume);
	}
	public static void main(String[]args)
	{
		Shape x = new Shape();
		x.setShape(12,6);
		x.getArea();
		Rectangle y = new Rectangle();
		y.setRectangle(9);
		y.getVolume(10,12);
	}
}




ELAVEYNI RAVI
ELAVEYNI RAVI
SHAPE
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
 area = length*width;
 System.out.println("The area is:"+area);
 
 }
}

RECTANGLE

public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
	volume =(length*width)*height;
	System.out.println("The volume is:"+volume);
	
	}
	public static void main(String[] args)
	{
		double x=30,y=18,z=4;
		Rectangle a = new Rectangle();
		a.getArea(x,y);
		a.getVolume(x,y,z);
	}
}	
nurnabilah binti mohd zubir
nurnabilah binti mohd zubir
superclass
public class Shape
{
  protected double length;
  protected double width;
  private double area;
  
  public void setShape(double length, double width)
  {
   this.length = length;
   
   this.width = width;
   
   }
   public void getArea(double length, double width)
   {
   area = length*width;
   System.out.println("Area of shape : " + area);
   }
   }

Subclass
public class Rectangle extends Shape
{
    private double height;
	private double volume;
	
	public void setRectangle (double height)
	{
	this.height=height;
	
	}
	public void getVolume(double length,double width,double height)
	{
	volume = length*width*height;
	System.out.println("Volume of Rectangle : " + volume);
	}
	public static void main(String[] args)
	{
	  double x=25.0, y=5.0 , z=20.0;
	  Rectangle a = new Rectangle();
	  a.getArea(x,y);
	  a.getVolume(x,y,z);
	}
}



TENGKU ANIS ROSEDIANA
TENGKU ANIS ROSEDIANA 
class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape1(double length,double width)
	{
	
		this.length = length;
		this.width = width;
	}
	

	public void getArea()
	{
		area = length * width;
		
		System.out.print("Area of rectangle : " + area);
	
	}
}


class Rectangle1 extends Shape1
{
	private double height;
	private double volume;
	
	public void setRectangle1(double height)
	{
		this.height = height;
	}
	
	public void getVolume()
	{
		volume = length*width*height;
		
		System.out.print("The Total Volume Of Rectangle :" + volume);
	}
	
	public static void main(String[]args)
	{
		double length = 4.5;
		double width = 2.5;
		double height = 3.5;
		
		Rectangle1 obj = new Rectangle1();
				
		obj.setShape1(length,width);
		obj.getArea();
		
		System.out.println();
		
		obj.setRectangle1(height);
		obj.getVolume();
	}
}
SUMITHRRA A/P RAVI
SUMITHRRA A/P RAVI
SHAPE
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
 area = length*width;
 System.out.println("Area is:"+area);
 
 }
}


RECTANGLE
public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
	volume =(length*width)*height;
	System.out.println("Volume is:"+volume);
	
	}
	public static void main(String[] args)
	{
		double m=20,n=8,o=16;
		Rectangle obj = new Rectangle();
		obj.getArea(m,n);
		obj.getVolume(m,n,o);
	}
}

RAJA AIMAN FITRI
RAJA AIMAN FITRI
Shape.java
class Shape
{
	protected  double length;
	protected double width;
	private double area;
	
	public void setShape(double length,double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea()
	{
		area = length * width;
		System.out.println("Area = " + area);
	}
}
Rectangle.java
class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}
	
	public void getVolume()
	{
		volume = length * width * height;
		System.out.println("Volume = " + volume);
	}
	
	public static void main (String args[])
	{
		double length=4.2,width=10.0,height=12.5;
		
		Rectangle obj = new Rectangle();
		
		obj.setShape(length,width);
		obj.getArea();
		System.out.println();
		obj.setRectangle(height);
		obj.getVolume();
	}
}

NUR SYAQIRAH NAIMAH
NUR SYAQIRAH NAIMAH
public class Shape
{
	private double area;
	protected double length;
	protected double width;
		public void setShape(double length, double width)
		{
			this.length=length;
			this.width=width;
		}

		public void getArea()
		{
			area=length*width;
			System.out.println("\nArea : "+area);
		}
}
public class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public static void main(String[]args)
	{
		Shape bersegi=new Shape();
		bersegi.setShape(24,12);
		bersegi.getArea();
		Rectangle berpetak=new Rectangle();
		berpetak.setRectangle(4cmd);
		berpetak.getVolume(24,12);
	}
	
	public void setRectangle(double height)
	{
	this.height=height;
	}

	public void getVolume(double width,double length)
	{
		volume=length*width*height;
		System.out.println("Volume is: "+volume);
	}
}

NUR ADHWA' NABILA
NUR ADHWA' NABILA 
Shape.java

class Shape
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length,double width)
	{
	
		this.length = length;
		this.width = width;
	}
	

	public void getArea()
	{
		area = length * width;
		
		System.out.print("Area of rectangle : " + area);
	
	}
}


Shape.java

class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}
	
	public void getVolume()
	{
		volume = length*width*height;
		
		System.out.print("Volume of retangle :" + volume);
	}
	
	public static void main(String[]args)
	{
		double length = 5.5;
		double width = 2.5;
		double height = 4.2;
		
		Rectangle obj = new Rectangle();
				
		obj.setShape(length,width);
		obj.getArea();
		
		System.out.println();
		
		obj.setRectangle(height);
		obj.getVolume();
	}
}
	
	

Muhammad Fadzlullah
Muhammad Fadzlullah 
Shapes.java
class Shapes
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShapes(double length, double width)
	{
	
		this.length = length ;
		this.width = width ;
		
	}
	
	public void getArea(double length, double width)
	{
		area = length * width ;
		
		System.out.println("Area is: " + area);
	}
}
Rectangle.java
class Rectangle extends Shapes
{
	private double volume;
	private double height;
	
	public void setRectangle(double height)
	{
		this.height=height;
	}
	public void getVolume(double length, double width, double height)
	{
		
		volume = length * width * height ;
		System.out.println("volume is " + volume );
	}


public static void main (String[] args)
{
	 double a = 12.1,b = 23.0,c = 3.0;
	
	
	Rectangle demo = new Rectangle();
	demo.getVolume(a,b,c);
	demo.getArea(a,b);
	
}
}
Muhammad Azlan
Muhammad Azlan
Shape.java

class Shape
{
   protected double length;
   protected double width;
   private double area;
   
   public void setShape (double length,double width)
   
    {
	 this.length = length;
	 this.width = width;
	}
	
   public void getArea(double length,double width)
   
   {
    area =length*width;
	System.out.println("The Area is " + area);
   }
   
}   

Rectangle.java

class Shape
{
   protected double length;
   protected double width;
   private double area;
   
   public void setShape (double length,double width)
   
    {
	 this.length = length;
	 this.width = width;
	}
	
   public void getArea(double length,double width)
   
   {
    area =length*width;
	System.out.println("The Area is " + area);
   }
   
}   
	 
   

	 
   
Mohamad Aiman
Mohamad Aiman
Shape1.java

public class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length, double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea(double length, double width)
	{
		area = length * width;
		System.out.println("The Area is  : " + area);
	}
	
}

Rectangle.java

class Rectangle extends Shape1
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
	this.height = height;
	}
	
	public void getVolume(double height, double length, double width)
	{
		volume = height * length * width;
		System.out.println("The Volume is : " + volume);
	}
	
	public static void main(String args[])
	
	{
		double q = 8.8, r = 9.9, b = 11.1;
		
		Rectangle man = new Rectangle();
		man.getVolume(q,r,b);
		man.getArea(q,r);
	}
	
}
Nurul Amiza Mohd Rizal
Nurul Amiza Mohd Rizal
class Shape 
{ 	
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length, double width)
	{
		this.length=length;
		this.width=width;
	}
	 
	public void getArea()
	{
		area=length*width;
		System.out.print("The area of the rectangle is : " + area );	
	}
}
class Rectangle extends Shape
{
	private double height;
	private double volume;
	
public void setRectangle(double height)
	{
		this.height=height;
	}
		
public void getVolume()
	{
		volume=length*width*height;
		System.out.print("The volume of the rectangle is :" + volume );
	}	

public static void main(String args [])
	{
		double length=19.7, width=7.0, height=16.0;
		Rectangle obj = new Rectangle();
		obj.setShape(length, width);
		obj.getArea();
		System.out.println();
		obj.setRectangle(height);
		obj.getVolume();
	}		
}

 	
NURIZLIN NATASHA
NURIZLIN NATASHA
class Shape {
    protected double length;
	protected double width;
	private double area;
	
	public void setShape (double length, double width ) {
	    this.length = length;
		this.width = width;
		
		}
		
		public void getArea (double length, double width) {
		
		area= length * width;
		
		System.out.println ( "the Area of Rectangle is :" + area );
		
		}
		}
	
public class Rectangle extends Shape {
  
	private double height;
	private double volume;
	
	public void setRectangle (double height ) {
	    this.height = height;
		
		}
		
	public void getVolume () {

	volume= (length * width) * height;
		
	System.out.println ( "the volume of Rectangle is :" + volume );
	
	
		
		}
		public static void main(String args[]){
        double a = 10; 
        double b = 5;
		double c = 8;
        Rectangle obj = new Rectangle();
        obj.setShape(a, b);
        obj.getArea(a, b);
        obj.setRectangle(c);
		obj.getVolume();
		}
}
farisyah munawwarah moh d samudin
farisyah munawwarah moh d samudin
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
 area = length*width;
 System.out.println("The area is:"+area);
 
 }
}
RECTANGLE
public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
	volume = length*width*height;
	System.out.println("The volume is:"+volume);
	
	}
	public static void main(String[] args)
	{
		double x=24.0,y=9.0,z=30.0;
		Rectangle a = new Rectangle();
		a.getArea(x,y);
		a.getVolume(x,y,z);
	}
}

Muhd Ikmal
Muhd Ikmal
Shape.java

public class Shape
{
	protected double length;
	protected double width;
	private double area;
	public void setShape(double length, double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea(double length, double width)
	{
		area = length*width;
		
		System.out.println("Area is : " + area);
	}
}

Rectangle.java

class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}
	
	public void getVolume(double height, double width, double length)
	{
		volume = length*width*height;
		
		System.out.println("volume is : " + volume);
	}
	
	public static void main (String[]args)
	{
		double length = 5.00;
		double width = 5.00;
		double height = 5.00;
		
		Rectangle total = new Rectangle();
		
		total.getArea(length,width);
		total.getVolume(length,width,height);
		
	}
}
Hanis Hafiz
Hanis Hafiz

public class Bentuk
{
	private double area;
	protected double length;
	protected double width;
		public void setShape(double length, double width)
		{
			this.length=length;
			this.width=width;
		}

		public void getArea()
		{
			area=length*width;
			System.out.println("\nArea : "+area);
		}
}

public class Petak extends Bentuk
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
	this.height=height;
	}

	public void getVolume(double width,double length)
	{
		volume=length*width*height;
		System.out.println("Volume is: "+volume);
	}

	public static void main(String[]args)
	{
		Bentuk bersegi=new Bentuk();
		bersegi.setShape(12,8);
		bersegi.getArea();
		Petak berpetak=new Petak();
		berpetak.setRectangle(9);
		berpetak.getVolume(12,8);
		
		
	}
}





khaliq
khaliq
public class Shape1
{

		protected double length,width;
		private double area;
		
		public void setShape(double length,double width)
		{
			this.length=length;
			this.width=width;
		}
		
		public void getArea()
		{
			area=length*width;
			System.out.println ("the area is:"+area);
		}
		public static void main (String[]args)
		{
		
		}
}
public class Rectangle extends Shape1 
{
	private double height,volume;
	
	public void setRectangle(double height)
	{
		this.height=height;
	}
	public void getVolume(double length,double width,double height)
	{
		volume=length*width*height;
		System.out.println ("the volume is:"+volume);
	}
	public static void main (String[]args)
	{
		Rectangle a =new Rectangle();
		a.height=(2);
		Rectangle b=new Rectangle();
		b.getVolume(3,4,5);	
		Shape1 c=new Shape1();
		c.setShape(6,7);
		c.getArea();
	}
}
NURFATIN AFIQAH BINTI MUSTAFAR
NURFATIN AFIQAH BINTI MUSTAFAR
public class Shape
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length, double width)
	{
		this.length=length;
		this.width=width;
		
	}

	public void getArea(double length,double width)
	{
		area=length*width;
		System.out.println("The area is: " + area);
		
	}
}
public class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle (double height)
	{
		this.height=height;
	}
	
	public void getVolume(double length,double width,double height)
	{
		volume=length*width*height;
		System.out.println("The volume is: " + volume);
	}
	
	public static void main(String [] args)
	{
		double c=12.2,d=5.5,e=7.8;
		Rectangle a = new Rectangle();
		a.getArea(c,d);
		a.getVolume(c,d,e);
		
	}
}	
Fahmi
Fahmi
Shape1.java
public class Shape1  
{ 
   
   protected double length; 
   protected double width; 
   private double area;
  
    
   public void setShape (double length, double width)   
   {
    this.length=length; 
	this.width=width;
 
   } 
    
	public void getArea(double length, double width) 
	{ 
	   area=length*width; 
	   System.out.println("Area is" +area);
	} 
	
}	

Rectangle.java 
public class Rectangle extends Shape1 
  { 
    private double height; 
	private double volume; 
	
	
	  public void setRectangle (double hieght)
    { 
	   this.height=height; 
    } 

      public void getVolume(double length,double width,double height)
	  
    { 
      volume=length*height*width; 
      System.out.println("voulume is" +volume);	  
    } 


	public static void main(String[] args)  
	{
	double 
	a=10.0,b=20.0,c=30.0; 
	Rectangle demo= new Rectangle(); 
	demo.getVolume(a,b,c); 
	demo.getArea(a,b); 
  	}
  }	  
Halim bin Sayadi
Halim bin Sayadi 
Shape1.java 

public class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void getShape (double length, double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea(double length, double width)
	{
		area = length * width;
		System.out.println ("The Area is " + area);
	}

}

Rectangle.java
class Rectangle extends Shape1 
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;

	}
	
	public void getVolume(double length, double width, double height)
	{
		volume =length * width * height;
		System.out.println ("The Volume is " + volume);
	}
	
	public static void main (String [] args)
	{
		double p = 10.2, q = 11.5, r = 5.1;
		Rectangle x = new Rectangle();
		x.getVolume(p,q,r);
		x.getArea(p,q);
	}
}



Pathmahn Pathmahn public
 Pathmahn
Pathmahn
public class Shape{

  protected double length;
  protected double width;
  private double area;

  public void setShape (double length,double width){

    this.length = length;
    this.width = width;
  }

  public void getArea(double length,double width){

    area=length*width;
    System.out.println("Area = " + area);
  }


}public class Rectangle extends Shape{

  private double height;
  private double volume;

  public void setRectangle(double height){

    this.height=height;
  }

  public void getVolume(double length,double width,double height){

    volume = length*width*height;

    System.out.println("Volume = " + volume);
  }

  public static void main(String[] args){

    double x = 40.0;
    double y = 50.0;
    double z = 60.0;


    Rectangle Rec = new Rectangle();

    Rec.getVolume(x,y,z);
    Rec.getArea(x,y);



  }


}

Naveen
Naveen
Shape
public class Shape
{
  protected double length;  protected double width;  private double area;

  public void setShapeExtends(double length,double width)
  {
    this.length=length;
    this.width=width;
  }
  public void getArea(double length,double width)
  {
    area=length*width;
    System.out.println("Area="+area);
  }
 }
Rectangle
public class Rectangle extends ShapeExtends
{
  private double height;
  private double volume;

  public void setRectangle(double height)
  {
    this.height=height;
  }

  public void getVolume(double length,double width,double height)
  {
    volume=length*width*height;
    System.out.println("Volume="+volume);
  }

  public static void main(String[] args)
  {
    double x=5.0;
    double y=6.0;
    double z=7.0;

     Rectangle zed=new Rectangle();

     zed.getArea(x,y);
     zed.getVolume(x,y,z);


  }
}
ITS ME HILMI
ITS ME HILMI
public class Shape
{
	private double area;
	protected double length, width;

	public void setShape(double length, double width)
	{
		this.length = length;
		this.width = width;
	}
 
	public void getArea()
	{
		area = length*width; 
		System.out.print("Area is : " + area);
	}
}

public class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}

	public void getVolume(double length, double width)
	{
		volume = length*width*height;
		System.out.println("\nThe volume is : " + volume);
	}
	public static void main(String[]args)
	{
		Shape x = new Shape();
		x.setShape(12,6);
		x.getArea();
		Rectangle y = new Rectangle();
		y.setRectangle(9);
		y.getVolume(10,12);
	}
}




ELAVEYNI RAVI
ELAVEYNI RAVI
SHAPE
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
 area = length*width;
 System.out.println("The area is:"+area);
 
 }
}

RECTANGLE

public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
	volume =(length*width)*height;
	System.out.println("The volume is:"+volume);
	
	}
	public static void main(String[] args)
	{
		double x=30,y=18,z=4;
		Rectangle a = new Rectangle();
		a.getArea(x,y);
		a.getVolume(x,y,z);
	}
}	
nurnabilah binti mohd zubir
nurnabilah binti mohd zubir
superclass
public class Shape
{
  protected double length;
  protected double width;
  private double area;
  
  public void setShape(double length, double width)
  {
   this.length = length;
   
   this.width = width;
   
   }
   public void getArea(double length, double width)
   {
   area = length*width;
   System.out.println("Area of shape : " + area);
   }
   }

Subclass
public class Rectangle extends Shape
{
    private double height;
	private double volume;
	
	public void setRectangle (double height)
	{
	this.height=height;
	
	}
	public void getVolume(double length,double width,double height)
	{
	volume = length*width*height;
	System.out.println("Volume of Rectangle : " + volume);
	}
	public static void main(String[] args)
	{
	  double x=25.0, y=5.0 , z=20.0;
	  Rectangle a = new Rectangle();
	  a.getArea(x,y);
	  a.getVolume(x,y,z);
	}
}



TENGKU ANIS ROSEDIANA
TENGKU ANIS ROSEDIANA 
class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape1(double length,double width)
	{
	
		this.length = length;
		this.width = width;
	}
	

	public void getArea()
	{
		area = length * width;
		
		System.out.print("Area of rectangle : " + area);
	
	}
}


class Rectangle1 extends Shape1
{
	private double height;
	private double volume;
	
	public void setRectangle1(double height)
	{
		this.height = height;
	}
	
	public void getVolume()
	{
		volume = length*width*height;
		
		System.out.print("The Total Volume Of Rectangle :" + volume);
	}
	
	public static void main(String[]args)
	{
		double length = 4.5;
		double width = 2.5;
		double height = 3.5;
		
		Rectangle1 obj = new Rectangle1();
				
		obj.setShape1(length,width);
		obj.getArea();
		
		System.out.println();
		
		obj.setRectangle1(height);
		obj.getVolume();
	}
}
SUMITHRRA A/P RAVI
SUMITHRRA A/P RAVI
SHAPE
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
 area = length*width;
 System.out.println("Area is:"+area);
 
 }
}


RECTANGLE
public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
	volume =(length*width)*height;
	System.out.println("Volume is:"+volume);
	
	}
	public static void main(String[] args)
	{
		double m=20,n=8,o=16;
		Rectangle obj = new Rectangle();
		obj.getArea(m,n);
		obj.getVolume(m,n,o);
	}
}

RAJA AIMAN FITRI
RAJA AIMAN FITRI
Shape.java
class Shape
{
	protected  double length;
	protected double width;
	private double area;
	
	public void setShape(double length,double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea()
	{
		area = length * width;
		System.out.println("Area = " + area);
	}
}
Rectangle.java
class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}
	
	public void getVolume()
	{
		volume = length * width * height;
		System.out.println("Volume = " + volume);
	}
	
	public static void main (String args[])
	{
		double length=4.2,width=10.0,height=12.5;
		
		Rectangle obj = new Rectangle();
		
		obj.setShape(length,width);
		obj.getArea();
		System.out.println();
		obj.setRectangle(height);
		obj.getVolume();
	}
}

NUR SYAQIRAH NAIMAH
NUR SYAQIRAH NAIMAH
public class Shape
{
	private double area;
	protected double length;
	protected double width;
		public void setShape(double length, double width)
		{
			this.length=length;
			this.width=width;
		}

		public void getArea()
		{
			area=length*width;
			System.out.println("\nArea : "+area);
		}
}
public class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public static void main(String[]args)
	{
		Shape bersegi=new Shape();
		bersegi.setShape(24,12);
		bersegi.getArea();
		Rectangle berpetak=new Rectangle();
		berpetak.setRectangle(4cmd);
		berpetak.getVolume(24,12);
	}
	
	public void setRectangle(double height)
	{
	this.height=height;
	}

	public void getVolume(double width,double length)
	{
		volume=length*width*height;
		System.out.println("Volume is: "+volume);
	}
}

NUR ADHWA' NABILA
NUR ADHWA' NABILA 
Shape.java

class Shape
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length,double width)
	{
	
		this.length = length;
		this.width = width;
	}
	

	public void getArea()
	{
		area = length * width;
		
		System.out.print("Area of rectangle : " + area);
	
	}
}


Shape.java

class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}
	
	public void getVolume()
	{
		volume = length*width*height;
		
		System.out.print("Volume of retangle :" + volume);
	}
	
	public static void main(String[]args)
	{
		double length = 5.5;
		double width = 2.5;
		double height = 4.2;
		
		Rectangle obj = new Rectangle();
				
		obj.setShape(length,width);
		obj.getArea();
		
		System.out.println();
		
		obj.setRectangle(height);
		obj.getVolume();
	}
}
	
	

Muhammad Fadzlullah
Muhammad Fadzlullah 
Shapes.java
class Shapes
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShapes(double length, double width)
	{
	
		this.length = length ;
		this.width = width ;
		
	}
	
	public void getArea(double length, double width)
	{
		area = length * width ;
		
		System.out.println("Area is: " + area);
	}
}
Rectangle.java
class Rectangle extends Shapes
{
	private double volume;
	private double height;
	
	public void setRectangle(double height)
	{
		this.height=height;
	}
	public void getVolume(double length, double width, double height)
	{
		
		volume = length * width * height ;
		System.out.println("volume is " + volume );
	}


public static void main (String[] args)
{
	 double a = 12.1,b = 23.0,c = 3.0;
	
	
	Rectangle demo = new Rectangle();
	demo.getVolume(a,b,c);
	demo.getArea(a,b);
	
}
}
Muhammad Azlan
Muhammad Azlan
Shape.java

class Shape
{
   protected double length;
   protected double width;
   private double area;
   
   public void setShape (double length,double width)
   
    {
	 this.length = length;
	 this.width = width;
	}
	
   public void getArea(double length,double width)
   
   {
    area =length*width;
	System.out.println("The Area is " + area);
   }
   
}   

Rectangle.java

class Shape
{
   protected double length;
   protected double width;
   private double area;
   
   public void setShape (double length,double width)
   
    {
	 this.length = length;
	 this.width = width;
	}
	
   public void getArea(double length,double width)
   
   {
    area =length*width;
	System.out.println("The Area is " + area);
   }
   
}   
	 
   

	 
   
Mohamad Aiman
Mohamad Aiman
Shape1.java

public class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length, double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea(double length, double width)
	{
		area = length * width;
		System.out.println("The Area is  : " + area);
	}
	
}

Rectangle.java

class Rectangle extends Shape1
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
	this.height = height;
	}
	
	public void getVolume(double height, double length, double width)
	{
		volume = height * length * width;
		System.out.println("The Volume is : " + volume);
	}
	
	public static void main(String args[])
	
	{
		double q = 8.8, r = 9.9, b = 11.1;
		
		Rectangle man = new Rectangle();
		man.getVolume(q,r,b);
		man.getArea(q,r);
	}
	
}
Nurul Amiza Mohd Rizal
Nurul Amiza Mohd Rizal
class Shape 
{ 	
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length, double width)
	{
		this.length=length;
		this.width=width;
	}
	 
	public void getArea()
	{
		area=length*width;
		System.out.print("The area of the rectangle is : " + area );	
	}
}
class Rectangle extends Shape
{
	private double height;
	private double volume;
	
public void setRectangle(double height)
	{
		this.height=height;
	}
		
public void getVolume()
	{
		volume=length*width*height;
		System.out.print("The volume of the rectangle is :" + volume );
	}	

public static void main(String args [])
	{
		double length=19.7, width=7.0, height=16.0;
		Rectangle obj = new Rectangle();
		obj.setShape(length, width);
		obj.getArea();
		System.out.println();
		obj.setRectangle(height);
		obj.getVolume();
	}		
}

 	
NURIZLIN NATASHA
NURIZLIN NATASHA
class Shape {
    protected double length;
	protected double width;
	private double area;
	
	public void setShape (double length, double width ) {
	    this.length = length;
		this.width = width;
		
		}
		
		public void getArea (double length, double width) {
		
		area= length * width;
		
		System.out.println ( "the Area of Rectangle is :" + area );
		
		}
		}
	
public class Rectangle extends Shape {
  
	private double height;
	private double volume;
	
	public void setRectangle (double height ) {
	    this.height = height;
		
		}
		
	public void getVolume () {

	volume= (length * width) * height;
		
	System.out.println ( "the volume of Rectangle is :" + volume );
	
	
		
		}
		public static void main(String args[]){
        double a = 10; 
        double b = 5;
		double c = 8;
        Rectangle obj = new Rectangle();
        obj.setShape(a, b);
        obj.getArea(a, b);
        obj.setRectangle(c);
		obj.getVolume();
		}
}
farisyah munawwarah moh d samudin
farisyah munawwarah moh d samudin
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
 area = length*width;
 System.out.println("The area is:"+area);
 
 }
}
RECTANGLE
public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
	volume = length*width*height;
	System.out.println("The volume is:"+volume);
	
	}
	public static void main(String[] args)
	{
		double x=24.0,y=9.0,z=30.0;
		Rectangle a = new Rectangle();
		a.getArea(x,y);
		a.getVolume(x,y,z);
	}
}

Muhd Ikmal
Muhd Ikmal
Shape.java

public class Shape
{
	protected double length;
	protected double width;
	private double area;
	public void setShape(double length, double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea(double length, double width)
	{
		area = length*width;
		
		System.out.println("Area is : " + area);
	}
}

Rectangle.java

class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}
	
	public void getVolume(double height, double width, double length)
	{
		volume = length*width*height;
		
		System.out.println("volume is : " + volume);
	}
	
	public static void main (String[]args)
	{
		double length = 5.00;
		double width = 5.00;
		double height = 5.00;
		
		Rectangle total = new Rectangle();
		
		total.getArea(length,width);
		total.getVolume(length,width,height);
		
	}
}
Hanis Hafiz
Hanis Hafiz

public class Bentuk
{
	private double area;
	protected double length;
	protected double width;
		public void setShape(double length, double width)
		{
			this.length=length;
			this.width=width;
		}

		public void getArea()
		{
			area=length*width;
			System.out.println("\nArea : "+area);
		}
}

public class Petak extends Bentuk
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
	this.height=height;
	}

	public void getVolume(double width,double length)
	{
		volume=length*width*height;
		System.out.println("Volume is: "+volume);
	}

	public static void main(String[]args)
	{
		Bentuk bersegi=new Bentuk();
		bersegi.setShape(12,8);
		bersegi.getArea();
		Petak berpetak=new Petak();
		berpetak.setRectangle(9);
		berpetak.getVolume(12,8);
		
		
	}
}





khaliq
khaliq
public class Shape1
{

		protected double length,width;
		private double area;
		
		public void setShape(double length,double width)
		{
			this.length=length;
			this.width=width;
		}
		
		public void getArea()
		{
			area=length*width;
			System.out.println ("the area is:"+area);
		}
		public static void main (String[]args)
		{
		
		}
}
public class Rectangle extends Shape1 
{
	private double height,volume;
	
	public void setRectangle(double height)
	{
		this.height=height;
	}
	public void getVolume(double length,double width,double height)
	{
		volume=length*width*height;
		System.out.println ("the volume is:"+volume);
	}
	public static void main (String[]args)
	{
		Rectangle a =new Rectangle();
		a.height=(2);
		Rectangle b=new Rectangle();
		b.getVolume(3,4,5);	
		Shape1 c=new Shape1();
		c.setShape(6,7);
		c.getArea();
	}
}
NURFATIN AFIQAH BINTI MUSTAFAR
NURFATIN AFIQAH BINTI MUSTAFAR
public class Shape
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length, double width)
	{
		this.length=length;
		this.width=width;
		
	}

	public void getArea(double length,double width)
	{
		area=length*width;
		System.out.println("The area is: " + area);
		
	}
}
public class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle (double height)
	{
		this.height=height;
	}
	
	public void getVolume(double length,double width,double height)
	{
		volume=length*width*height;
		System.out.println("The volume is: " + volume);
	}
	
	public static void main(String [] args)
	{
		double c=12.2,d=5.5,e=7.8;
		Rectangle a = new Rectangle();
		a.getArea(c,d);
		a.getVolume(c,d,e);
		
	}
}	
Fahmi
Fahmi
Shape1.java
public class Shape1  
{ 
   
   protected double length; 
   protected double width; 
   private double area;
  
    
   public void setShape (double length, double width)   
   {
    this.length=length; 
	this.width=width;
 
   } 
    
	public void getArea(double length, double width) 
	{ 
	   area=length*width; 
	   System.out.println("Area is" +area);
	} 
	
}	

Rectangle.java 
public class Rectangle extends Shape1 
  { 
    private double height; 
	private double volume; 
	
	
	  public void setRectangle (double hieght)
    { 
	   this.height=height; 
    } 

      public void getVolume(double length,double width,double height)
	  
    { 
      volume=length*height*width; 
      System.out.println("voulume is" +volume);	  
    } 


	public static void main(String[] args)  
	{
	double 
	a=10.0,b=20.0,c=30.0; 
	Rectangle demo= new Rectangle(); 
	demo.getVolume(a,b,c); 
	demo.getArea(a,b); 
  	}
  }	  
Halim bin Sayadi
Halim bin Sayadi 
Shape1.java 

public class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void getShape (double length, double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea(double length, double width)
	{
		area = length * width;
		System.out.println ("The Area is " + area);
	}

}

Rectangle.java
class Rectangle extends Shape1 
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;

	}
	
	public void getVolume(double length, double width, double height)
	{
		volume =length * width * height;
		System.out.println ("The Volume is " + volume);
	}
	
	public static void main (String [] args)
	{
		double p = 10.2, q = 11.5, r = 5.1;
		Rectangle x = new Rectangle();
		x.getVolume(p,q,r);
		x.getArea(p,q);
	}
}



coding(ameer)
coding(ameer)
Shape1.java

class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length,double width){
		
		this.length=length;
		this.width=width;
	}
	
	public void getArea(double length,double width){
	
	area=length*width;
	System.out.println("Area is "+area);
	}
	
}

Rectangle.java

class Rectangle extends Shape1{

	private double height;
	private double volume;
	
	public void setRectangle(double height){
	
	this.height=height;
	}
	public void getVolume(double length,double width,double height){
	
	volume=length*width*height;
	System.out.println("volume is "+volume);
	
	}
	
	public static void main(String[]args){
		
		double a=10.1,b=22.0,c=2.0;
		Rectangle demo = new Rectangle();
		demo.getVolume(a,b,c);
		demo.getArea(a,b);
		

	}
}
Exercise
Exercise
coding(ameer)
coding(ameer)
Shape1.java

class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length,double width){
		
		this.length=length;
		this.width=width;
	}
	
	public void getArea(double length,double width){
	
	area=length*width;
	System.out.println("Area is "+area);
	}
	
}

Rectangle.java

class Rectangle extends Shape1{

	private double height;
	private double volume;
	
	public void setRectangle(double height){
	
	this.height=height;
	}
	public void getVolume(double length,double width,double height){
	
	volume=length*width*height;
	System.out.println("volume is "+volume);
	
	}
	
	public static void main(String[]args){
		
		double a=10.1,b=22.0,c=2.0;
		Rectangle demo = new Rectangle();
		demo.getVolume(a,b,c);
		demo.getArea(a,b);
		

	}
}
Exercise
Exercise

# data[].attributes.body
public class Shape{

  protected double length;
  protected double width;
  private double area;

  public void setShape (double length,double width){

    this.length = length;
    this.width = width;
  }

  public void getArea(){

    area=length*width;
    System.out.println("Area = " + area);
  }


}
public class Rectangle extends Shape{

  private double height;
  private double volume;

  public void setRectangle(double height){

    this.height=height;
  }

  public void getVolume(){

    volume = super.length*super.width*height;

    System.out.println("Volume = " + volume);
  }

  public static void main(String[] args){

    Rectangle Rec = new Rectangle();

    Rec.setShape(40.0,50.0);
    Rec.getArea();

    Rec.setRectangle(60.0);
    Rec.getVolume();


  }


}

# data[].attributes.body
public class Shape
{
  protected double length;
  protected double width;
  private double area;

  public void setShape(double length,double width)
  {
    this.length=length;
    this.width=width;
  }
  public void getArea()
  {
    area=length*width;
    System.out.println("Area="+area);
  }
 }
public class Rectangle extends Shape
{
  private double height;
  private double volume;

  public void setRectangle(double height)
  {
    this.height=height;
  }

  public void getVolume()
  {

    volume=super.length*super.width*height;
    System.out.println("Volume="+volume);
  }

  public static void main(String[] args)
  {

     Rectangle obj=new Rectangle();

     obj.setShape(5.0,6.0);
     obj.getArea();

     obj.setRectangle(7.0);
     obj.getVolume();


  }
}

# data[].attributes.body
public class Shape{

  protected double length;
  protected double width;
  private double area;

  public void setShape (double length,double width){

    this.length = length;
    this.width = width;
  }

  public void getArea(double length,double width){

    area=length*width;
    System.out.println("Area = " + area);
  }


}public class Rectangle extends Shape{

  private double height;
  private double volume;

  public void setRectangle(double height){

    this.height=height;
  }

  public void getVolume(double length,double width,double height){

    volume = length*width*height;

    System.out.println("Volume = " + volume);
  }

  public static void main(String[] args){

    double x = 40.0;
    double y = 50.0;
    double z = 60.0;


    Rectangle Rec = new Rectangle();

    Rec.getVolume(x,y,z);
    Rec.getArea(x,y);



  }


}

# data[].attributes.body
public class Shape
{
private double area;
protected double length, width;

public void setShape(double length, double width)
{
this.length = length;
this.width = width;
}

public void getArea()
{
area = length*width;
System.out.print("Area is : " + area);
}
}

public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle(double height)
{
this.height = height;
}

public void getVolume(double length, double width)
{
volume = length*width*height;
System.out.println("\nThe volume is : " + volume);
}
public static void main(String[]args)
{
Shape x = new Shape();
x.setShape(12,6);
x.getArea();
Rectangle y = new Rectangle();
y.setRectangle(9);
y.getVolume(10,12);
}
}

# data[].attributes.body
SHAPE
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
area = length*width;
System.out.println("The area is:"+area);

}
}

RECTANGLE

public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
volume =(length*width)*height;
System.out.println("The volume is:"+volume);

}
public static void main(String[] args)
{
double x=30,y=18,z=4;
Rectangle a = new Rectangle();
a.getArea(x,y);
a.getVolume(x,y,z);
}
}

# data[].attributes.body
superclass
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape(double length, double width)
{
this.length = length;

this.width = width;

}
public void getArea(double length, double width)
{
area = length*width;
System.out.println("Area of shape : " + area);
}
}

Subclass
public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height)
{
this.height=height;

}
public void getVolume(double length,double width,double height)
{
volume = length*width*height;
System.out.println("Volume of Rectangle : " + volume);
}
public static void main(String[] args)
{
double x=25.0, y=5.0 , z=20.0;
Rectangle a = new Rectangle();
a.getArea(x,y);
a.getVolume(x,y,z);
}
}

# data[].attributes.body
class Shape1
{
protected double length;
protected double width;
private double area;

public void setShape1(double length,double width)
{

this.length = length;
this.width = width;
}

public void getArea()
{
area = length * width;

System.out.print("Area of rectangle : " + area);

}
}

class Rectangle1 extends Shape1
{
private double height;
private double volume;

public void setRectangle1(double height)
{
this.height = height;
}

public void getVolume()
{
volume = length*width*height;

System.out.print("The Total Volume Of Rectangle :" + volume);
}

public static void main(String[]args)
{
double length = 4.5;
double width = 2.5;
double height = 3.5;

Rectangle1 obj = new Rectangle1();

obj.setShape1(length,width);
obj.getArea();

System.out.println();

obj.setRectangle1(height);
obj.getVolume();
}
}

# data[].attributes.body
SHAPE
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
area = length*width;
System.out.println("Area is:"+area);

}
}

RECTANGLE
public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
volume =(length*width)*height;
System.out.println("Volume is:"+volume);

}
public static void main(String[] args)
{
double m=20,n=8,o=16;
Rectangle obj = new Rectangle();
obj.getArea(m,n);
obj.getVolume(m,n,o);
}
}

# data[].attributes.body
Shape.java
class Shape
{
protected  double length;
protected double width;
private double area;

public void setShape(double length,double width)
{
this.length = length;
this.width = width;
}

public void getArea()
{
area = length * width;
System.out.println("Area = " + area);
}
}
Rectangle.java
class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle(double height)
{
this.height = height;
}

public void getVolume()
{
volume = length * width * height;
System.out.println("Volume = " + volume);
}

public static void main (String args[])
{
double length=4.2,width=10.0,height=12.5;

Rectangle obj = new Rectangle();

obj.setShape(length,width);
obj.getArea();
System.out.println();
obj.setRectangle(height);
obj.getVolume();
}
}

# data[].attributes.body
public class Shape
{
private double area;
protected double length;
protected double width;
public void setShape(double length, double width)
{
this.length=length;
this.width=width;
}

public void getArea()
{
area=length*width;
System.out.println("\nArea : "+area);
}
}
public class Rectangle extends Shape
{
private double height;
private double volume;

public static void main(String[]args)
{
Shape bersegi=new Shape();
bersegi.setShape(24,12);
bersegi.getArea();
Rectangle berpetak=new Rectangle();
berpetak.setRectangle(4cmd);
berpetak.getVolume(24,12);
}

public void setRectangle(double height)
{
this.height=height;
}

public void getVolume(double width,double length)
{
volume=length*width*height;
System.out.println("Volume is: "+volume);
}
}

# data[].attributes.body
Shape.java

class Shape
{
protected double length;
protected double width;
private double area;

public void setShape(double length,double width)
{

this.length = length;
this.width = width;
}

public void getArea()
{
area = length * width;

System.out.print("Area of rectangle : " + area);

}
}

Shape.java

class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle(double height)
{
this.height = height;
}

public void getVolume()
{
volume = length*width*height;

System.out.print("Volume of retangle :" + volume);
}

public static void main(String[]args)
{
double length = 5.5;
double width = 2.5;
double height = 4.2;

Rectangle obj = new Rectangle();

obj.setShape(length,width);
obj.getArea();

System.out.println();

obj.setRectangle(height);
obj.getVolume();
}
}

# data[].attributes.body
Shapes.java
class Shapes
{
protected double length;
protected double width;
private double area;

public void setShapes(double length, double width)
{

this.length = length ;
this.width = width ;

}

public void getArea(double length, double width)
{
area = length * width ;

System.out.println("Area is: " + area);
}
}
Rectangle.java
class Rectangle extends Shapes
{
private double volume;
private double height;

public void setRectangle(double height)
{
this.height=height;
}
public void getVolume(double length, double width, double height)
{

volume = length * width * height ;
System.out.println("volume is " + volume );
}

public static void main (String[] args)
{
double a = 12.1,b = 23.0,c = 3.0;

Rectangle demo = new Rectangle();
demo.getVolume(a,b,c);
demo.getArea(a,b);

}
}

# data[].attributes.body
Shape.java

class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width)

{
this.length = length;
this.width = width;
}

public void getArea(double length,double width)

{
area =length*width;
System.out.println("The Area is " + area);
}

}

Rectangle.java

class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width)

{
this.length = length;
this.width = width;
}

public void getArea(double length,double width)

{
area =length*width;
System.out.println("The Area is " + area);
}

}

# data[].attributes.body
Shape1.java

public class Shape1
{
protected double length;
protected double width;
private double area;

public void setShape(double length, double width)
{
this.length = length;
this.width = width;
}

public void getArea(double length, double width)
{
area = length * width;
System.out.println("The Area is  : " + area);
}

}

Rectangle.java

class Rectangle extends Shape1
{
private double height;
private double volume;

public void setRectangle(double height)
{
this.height = height;
}

public void getVolume(double height, double length, double width)
{
volume = height * length * width;
System.out.println("The Volume is : " + volume);
}

public static void main(String args[])

{
double q = 8.8, r = 9.9, b = 11.1;

Rectangle man = new Rectangle();
man.getVolume(q,r,b);
man.getArea(q,r);
}

}

# data[].attributes.body
class Shape
{
protected double length;
protected double width;
private double area;

public void setShape(double length, double width)
{
this.length=length;
this.width=width;
}

public void getArea()
{
area=length*width;
System.out.print("The area of the rectangle is : " + area );
}
}
class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle(double height)
{
this.height=height;
}

public void getVolume()
{
volume=length*width*height;
System.out.print("The volume of the rectangle is :" + volume );
}

public static void main(String args [])
{
double length=19.7, width=7.0, height=16.0;
Rectangle obj = new Rectangle();
obj.setShape(length, width);
obj.getArea();
System.out.println();
obj.setRectangle(height);
obj.getVolume();
}
}

# data[].attributes.body
class Shape {
protected double length;
protected double width;
private double area;

public void setShape (double length, double width ) {
this.length = length;
this.width = width;

}

public void getArea (double length, double width) {

area= length * width;

System.out.println ( "the Area of Rectangle is :" + area );

}
}

public class Rectangle extends Shape {

private double height;
private double volume;

public void setRectangle (double height ) {
this.height = height;

}

public void getVolume () {

volume= (length * width) * height;

System.out.println ( "the volume of Rectangle is :" + volume );

}
public static void main(String args[]){
double a = 10;
double b = 5;
double c = 8;
Rectangle obj = new Rectangle();
obj.setShape(a, b);
obj.getArea(a, b);
obj.setRectangle(c);
obj.getVolume();
}
}

# data[].attributes.body
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
area = length*width;
System.out.println("The area is:"+area);

}
}
RECTANGLE
public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
volume = length*width*height;
System.out.println("The volume is:"+volume);

}
public static void main(String[] args)
{
double x=24.0,y=9.0,z=30.0;
Rectangle a = new Rectangle();
a.getArea(x,y);
a.getVolume(x,y,z);
}
}

# data[].attributes.body
Shape.java

public class Shape
{
protected double length;
protected double width;
private double area;
public void setShape(double length, double width)
{
this.length = length;
this.width = width;
}

public void getArea(double length, double width)
{
area = length*width;

System.out.println("Area is : " + area);
}
}

Rectangle.java

class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle(double height)
{
this.height = height;
}

public void getVolume(double height, double width, double length)
{
volume = length*width*height;

System.out.println("volume is : " + volume);
}

public static void main (String[]args)
{
double length = 5.00;
double width = 5.00;
double height = 5.00;

Rectangle total = new Rectangle();

total.getArea(length,width);
total.getVolume(length,width,height);

}
}

# data[].attributes.body
public class Bentuk
{
private double area;
protected double length;
protected double width;
public void setShape(double length, double width)
{
this.length=length;
this.width=width;
}

public void getArea()
{
area=length*width;
System.out.println("\nArea : "+area);
}
}

public class Petak extends Bentuk
{
private double height;
private double volume;

public void setRectangle(double height)
{
this.height=height;
}

public void getVolume(double width,double length)
{
volume=length*width*height;
System.out.println("Volume is: "+volume);
}

public static void main(String[]args)
{
Bentuk bersegi=new Bentuk();
bersegi.setShape(12,8);
bersegi.getArea();
Petak berpetak=new Petak();
berpetak.setRectangle(9);
berpetak.getVolume(12,8);

}
}

# data[].attributes.body
public class Shape1
{

protected double length,width;
private double area;

public void setShape(double length,double width)
{
this.length=length;
this.width=width;
}

public void getArea()
{
area=length*width;
System.out.println ("the area is:"+area);
}
public static void main (String[]args)
{

}
}
public class Rectangle extends Shape1
{
private double height,volume;

public void setRectangle(double height)
{
this.height=height;
}
public void getVolume(double length,double width,double height)
{
volume=length*width*height;
System.out.println ("the volume is:"+volume);
}
public static void main (String[]args)
{
Rectangle a =new Rectangle();
a.height=(2);
Rectangle b=new Rectangle();
b.getVolume(3,4,5);
Shape1 c=new Shape1();
c.setShape(6,7);
c.getArea();
}
}

# data[].attributes.body
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape(double length, double width)
{
this.length=length;
this.width=width;

}

public void getArea(double length,double width)
{
area=length*width;
System.out.println("The area is: " + area);

}
}
public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height)
{
this.height=height;
}

public void getVolume(double length,double width,double height)
{
volume=length*width*height;
System.out.println("The volume is: " + volume);
}

public static void main(String [] args)
{
double c=12.2,d=5.5,e=7.8;
Rectangle a = new Rectangle();
a.getArea(c,d);
a.getVolume(c,d,e);

}
}

# data[].attributes.body
Shape1.java
public class Shape1
{

protected double length;
protected double width;
private double area;

public void setShape (double length, double width)
{
this.length=length;
this.width=width;

}

public void getArea(double length, double width)
{
area=length*width;
System.out.println("Area is" +area);
}

}

Rectangle.java
public class Rectangle extends Shape1
{
private double height;
private double volume;

public void setRectangle (double hieght)
{
this.height=height;
}

public void getVolume(double length,double width,double height)

{
volume=length*height*width;
System.out.println("voulume is" +volume);
}

public static void main(String[] args)
{
double
a=10.0,b=20.0,c=30.0;
Rectangle demo= new Rectangle();
demo.getVolume(a,b,c);
demo.getArea(a,b);
}
}

# data[].attributes.body
Shape1.java

public class Shape1
{
protected double length;
protected double width;
private double area;

public void getShape (double length, double width)
{
this.length = length;
this.width = width;
}

public void getArea(double length, double width)
{
area = length * width;
System.out.println ("The Area is " + area);
}

}

Rectangle.java
class Rectangle extends Shape1
{
private double height;
private double volume;

public void setRectangle(double height)
{
this.height = height;

}

public void getVolume(double length, double width, double height)
{
volume =length * width * height;
System.out.println ("The Volume is " + volume);
}

public static void main (String [] args)
{
double p = 10.2, q = 11.5, r = 5.1;
Rectangle x = new Rectangle();
x.getVolume(p,q,r);
x.getArea(p,q);
}
}

# data[].attributes.body
Pathmahn
Pathmahn
public class Shape{

  protected double length;
  protected double width;
  private double area;

  public void setShape (double length,double width){

    this.length = length;
    this.width = width;
  }

  public void getArea(double length,double width){

    area=length*width;
    System.out.println("Area = " + area);
  }


}public class Rectangle extends Shape{

  private double height;
  private double volume;

  public void setRectangle(double height){

    this.height=height;
  }

  public void getVolume(double length,double width,double height){

    volume = length*width*height;

    System.out.println("Volume = " + volume);
  }

  public static void main(String[] args){

    double x = 40.0;
    double y = 50.0;
    double z = 60.0;


    Rectangle Rec = new Rectangle();

    Rec.getVolume(x,y,z);
    Rec.getArea(x,y);



  }


}

Naveen
Naveen
Shape
public class Shape
{
  protected double length;  protected double width;  private double area;

  public void setShapeExtends(double length,double width)
  {
    this.length=length;
    this.width=width;
  }
  public void getArea(double length,double width)
  {
    area=length*width;
    System.out.println("Area="+area);
  }
 }
Rectangle
public class Rectangle extends ShapeExtends
{
  private double height;
  private double volume;

  public void setRectangle(double height)
  {
    this.height=height;
  }

  public void getVolume(double length,double width,double height)
  {
    volume=length*width*height;
    System.out.println("Volume="+volume);
  }

  public static void main(String[] args)
  {
    double x=5.0;
    double y=6.0;
    double z=7.0;

     Rectangle zed=new Rectangle();

     zed.getArea(x,y);
     zed.getVolume(x,y,z);


  }
}
ITS ME HILMI
ITS ME HILMI
public class Shape
{
	private double area;
	protected double length, width;

	public void setShape(double length, double width)
	{
		this.length = length;
		this.width = width;
	}
 
	public void getArea()
	{
		area = length*width; 
		System.out.print("Area is : " + area);
	}
}

public class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}

	public void getVolume(double length, double width)
	{
		volume = length*width*height;
		System.out.println("\nThe volume is : " + volume);
	}
	public static void main(String[]args)
	{
		Shape x = new Shape();
		x.setShape(12,6);
		x.getArea();
		Rectangle y = new Rectangle();
		y.setRectangle(9);
		y.getVolume(10,12);
	}
}




ELAVEYNI RAVI
ELAVEYNI RAVI
SHAPE
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
 area = length*width;
 System.out.println("The area is:"+area);
 
 }
}

RECTANGLE

public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
	volume =(length*width)*height;
	System.out.println("The volume is:"+volume);
	
	}
	public static void main(String[] args)
	{
		double x=30,y=18,z=4;
		Rectangle a = new Rectangle();
		a.getArea(x,y);
		a.getVolume(x,y,z);
	}
}	
nurnabilah binti mohd zubir
nurnabilah binti mohd zubir
superclass
public class Shape
{
  protected double length;
  protected double width;
  private double area;
  
  public void setShape(double length, double width)
  {
   this.length = length;
   
   this.width = width;
   
   }
   public void getArea(double length, double width)
   {
   area = length*width;
   System.out.println("Area of shape : " + area);
   }
   }

Subclass
public class Rectangle extends Shape
{
    private double height;
	private double volume;
	
	public void setRectangle (double height)
	{
	this.height=height;
	
	}
	public void getVolume(double length,double width,double height)
	{
	volume = length*width*height;
	System.out.println("Volume of Rectangle : " + volume);
	}
	public static void main(String[] args)
	{
	  double x=25.0, y=5.0 , z=20.0;
	  Rectangle a = new Rectangle();
	  a.getArea(x,y);
	  a.getVolume(x,y,z);
	}
}



TENGKU ANIS ROSEDIANA
TENGKU ANIS ROSEDIANA 
class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape1(double length,double width)
	{
	
		this.length = length;
		this.width = width;
	}
	

	public void getArea()
	{
		area = length * width;
		
		System.out.print("Area of rectangle : " + area);
	
	}
}


class Rectangle1 extends Shape1
{
	private double height;
	private double volume;
	
	public void setRectangle1(double height)
	{
		this.height = height;
	}
	
	public void getVolume()
	{
		volume = length*width*height;
		
		System.out.print("The Total Volume Of Rectangle :" + volume);
	}
	
	public static void main(String[]args)
	{
		double length = 4.5;
		double width = 2.5;
		double height = 3.5;
		
		Rectangle1 obj = new Rectangle1();
				
		obj.setShape1(length,width);
		obj.getArea();
		
		System.out.println();
		
		obj.setRectangle1(height);
		obj.getVolume();
	}
}
SUMITHRRA A/P RAVI
SUMITHRRA A/P RAVI
SHAPE
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
 area = length*width;
 System.out.println("Area is:"+area);
 
 }
}


RECTANGLE
public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
	volume =(length*width)*height;
	System.out.println("Volume is:"+volume);
	
	}
	public static void main(String[] args)
	{
		double m=20,n=8,o=16;
		Rectangle obj = new Rectangle();
		obj.getArea(m,n);
		obj.getVolume(m,n,o);
	}
}

RAJA AIMAN FITRI
RAJA AIMAN FITRI
Shape.java
class Shape
{
	protected  double length;
	protected double width;
	private double area;
	
	public void setShape(double length,double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea()
	{
		area = length * width;
		System.out.println("Area = " + area);
	}
}
Rectangle.java
class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}
	
	public void getVolume()
	{
		volume = length * width * height;
		System.out.println("Volume = " + volume);
	}
	
	public static void main (String args[])
	{
		double length=4.2,width=10.0,height=12.5;
		
		Rectangle obj = new Rectangle();
		
		obj.setShape(length,width);
		obj.getArea();
		System.out.println();
		obj.setRectangle(height);
		obj.getVolume();
	}
}

NUR SYAQIRAH NAIMAH
NUR SYAQIRAH NAIMAH
public class Shape
{
	private double area;
	protected double length;
	protected double width;
		public void setShape(double length, double width)
		{
			this.length=length;
			this.width=width;
		}

		public void getArea()
		{
			area=length*width;
			System.out.println("\nArea : "+area);
		}
}
public class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public static void main(String[]args)
	{
		Shape bersegi=new Shape();
		bersegi.setShape(24,12);
		bersegi.getArea();
		Rectangle berpetak=new Rectangle();
		berpetak.setRectangle(4cmd);
		berpetak.getVolume(24,12);
	}
	
	public void setRectangle(double height)
	{
	this.height=height;
	}

	public void getVolume(double width,double length)
	{
		volume=length*width*height;
		System.out.println("Volume is: "+volume);
	}
}

NUR ADHWA' NABILA
NUR ADHWA' NABILA 
Shape.java

class Shape
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length,double width)
	{
	
		this.length = length;
		this.width = width;
	}
	

	public void getArea()
	{
		area = length * width;
		
		System.out.print("Area of rectangle : " + area);
	
	}
}


Shape.java

class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}
	
	public void getVolume()
	{
		volume = length*width*height;
		
		System.out.print("Volume of retangle :" + volume);
	}
	
	public static void main(String[]args)
	{
		double length = 5.5;
		double width = 2.5;
		double height = 4.2;
		
		Rectangle obj = new Rectangle();
				
		obj.setShape(length,width);
		obj.getArea();
		
		System.out.println();
		
		obj.setRectangle(height);
		obj.getVolume();
	}
}
	
	

Muhammad Fadzlullah
Muhammad Fadzlullah 
Shapes.java
class Shapes
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShapes(double length, double width)
	{
	
		this.length = length ;
		this.width = width ;
		
	}
	
	public void getArea(double length, double width)
	{
		area = length * width ;
		
		System.out.println("Area is: " + area);
	}
}
Rectangle.java
class Rectangle extends Shapes
{
	private double volume;
	private double height;
	
	public void setRectangle(double height)
	{
		this.height=height;
	}
	public void getVolume(double length, double width, double height)
	{
		
		volume = length * width * height ;
		System.out.println("volume is " + volume );
	}


public static void main (String[] args)
{
	 double a = 12.1,b = 23.0,c = 3.0;
	
	
	Rectangle demo = new Rectangle();
	demo.getVolume(a,b,c);
	demo.getArea(a,b);
	
}
}
Muhammad Azlan
Muhammad Azlan
Shape.java

class Shape
{
   protected double length;
   protected double width;
   private double area;
   
   public void setShape (double length,double width)
   
    {
	 this.length = length;
	 this.width = width;
	}
	
   public void getArea(double length,double width)
   
   {
    area =length*width;
	System.out.println("The Area is " + area);
   }
   
}   

Rectangle.java

class Shape
{
   protected double length;
   protected double width;
   private double area;
   
   public void setShape (double length,double width)
   
    {
	 this.length = length;
	 this.width = width;
	}
	
   public void getArea(double length,double width)
   
   {
    area =length*width;
	System.out.println("The Area is " + area);
   }
   
}   
	 
   

	 
   
Mohamad Aiman
Mohamad Aiman
Shape1.java

public class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length, double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea(double length, double width)
	{
		area = length * width;
		System.out.println("The Area is  : " + area);
	}
	
}

Rectangle.java

class Rectangle extends Shape1
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
	this.height = height;
	}
	
	public void getVolume(double height, double length, double width)
	{
		volume = height * length * width;
		System.out.println("The Volume is : " + volume);
	}
	
	public static void main(String args[])
	
	{
		double q = 8.8, r = 9.9, b = 11.1;
		
		Rectangle man = new Rectangle();
		man.getVolume(q,r,b);
		man.getArea(q,r);
	}
	
}
Nurul Amiza Mohd Rizal
Nurul Amiza Mohd Rizal
class Shape 
{ 	
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length, double width)
	{
		this.length=length;
		this.width=width;
	}
	 
	public void getArea()
	{
		area=length*width;
		System.out.print("The area of the rectangle is : " + area );	
	}
}
class Rectangle extends Shape
{
	private double height;
	private double volume;
	
public void setRectangle(double height)
	{
		this.height=height;
	}
		
public void getVolume()
	{
		volume=length*width*height;
		System.out.print("The volume of the rectangle is :" + volume );
	}	

public static void main(String args [])
	{
		double length=19.7, width=7.0, height=16.0;
		Rectangle obj = new Rectangle();
		obj.setShape(length, width);
		obj.getArea();
		System.out.println();
		obj.setRectangle(height);
		obj.getVolume();
	}		
}

 	
NURIZLIN NATASHA
NURIZLIN NATASHA
class Shape {
    protected double length;
	protected double width;
	private double area;
	
	public void setShape (double length, double width ) {
	    this.length = length;
		this.width = width;
		
		}
		
		public void getArea (double length, double width) {
		
		area= length * width;
		
		System.out.println ( "the Area of Rectangle is :" + area );
		
		}
		}
	
public class Rectangle extends Shape {
  
	private double height;
	private double volume;
	
	public void setRectangle (double height ) {
	    this.height = height;
		
		}
		
	public void getVolume () {

	volume= (length * width) * height;
		
	System.out.println ( "the volume of Rectangle is :" + volume );
	
	
		
		}
		public static void main(String args[]){
        double a = 10; 
        double b = 5;
		double c = 8;
        Rectangle obj = new Rectangle();
        obj.setShape(a, b);
        obj.getArea(a, b);
        obj.setRectangle(c);
		obj.getVolume();
		}
}
farisyah munawwarah moh d samudin
farisyah munawwarah moh d samudin
public class Shape
{
protected double length;
protected double width;
private double area;

public void setShape (double length,double width){
this.length = length;
this.width = width;
}

public void getArea(double length,double width){
 area = length*width;
 System.out.println("The area is:"+area);
 
 }
}
RECTANGLE
public class Rectangle extends Shape
{
private double height;
private double volume;

public void setRectangle (double height){
this.height = height;
}
public void getVolume(double length,double width,double height){
	volume = length*width*height;
	System.out.println("The volume is:"+volume);
	
	}
	public static void main(String[] args)
	{
		double x=24.0,y=9.0,z=30.0;
		Rectangle a = new Rectangle();
		a.getArea(x,y);
		a.getVolume(x,y,z);
	}
}

Muhd Ikmal
Muhd Ikmal
Shape.java

public class Shape
{
	protected double length;
	protected double width;
	private double area;
	public void setShape(double length, double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea(double length, double width)
	{
		area = length*width;
		
		System.out.println("Area is : " + area);
	}
}

Rectangle.java

class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;
	}
	
	public void getVolume(double height, double width, double length)
	{
		volume = length*width*height;
		
		System.out.println("volume is : " + volume);
	}
	
	public static void main (String[]args)
	{
		double length = 5.00;
		double width = 5.00;
		double height = 5.00;
		
		Rectangle total = new Rectangle();
		
		total.getArea(length,width);
		total.getVolume(length,width,height);
		
	}
}
Hanis Hafiz
Hanis Hafiz

public class Bentuk
{
	private double area;
	protected double length;
	protected double width;
		public void setShape(double length, double width)
		{
			this.length=length;
			this.width=width;
		}

		public void getArea()
		{
			area=length*width;
			System.out.println("\nArea : "+area);
		}
}

public class Petak extends Bentuk
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
	this.height=height;
	}

	public void getVolume(double width,double length)
	{
		volume=length*width*height;
		System.out.println("Volume is: "+volume);
	}

	public static void main(String[]args)
	{
		Bentuk bersegi=new Bentuk();
		bersegi.setShape(12,8);
		bersegi.getArea();
		Petak berpetak=new Petak();
		berpetak.setRectangle(9);
		berpetak.getVolume(12,8);
		
		
	}
}





khaliq
khaliq
public class Shape1
{

		protected double length,width;
		private double area;
		
		public void setShape(double length,double width)
		{
			this.length=length;
			this.width=width;
		}
		
		public void getArea()
		{
			area=length*width;
			System.out.println ("the area is:"+area);
		}
		public static void main (String[]args)
		{
		
		}
}
public class Rectangle extends Shape1 
{
	private double height,volume;
	
	public void setRectangle(double height)
	{
		this.height=height;
	}
	public void getVolume(double length,double width,double height)
	{
		volume=length*width*height;
		System.out.println ("the volume is:"+volume);
	}
	public static void main (String[]args)
	{
		Rectangle a =new Rectangle();
		a.height=(2);
		Rectangle b=new Rectangle();
		b.getVolume(3,4,5);	
		Shape1 c=new Shape1();
		c.setShape(6,7);
		c.getArea();
	}
}
NURFATIN AFIQAH BINTI MUSTAFAR
NURFATIN AFIQAH BINTI MUSTAFAR
public class Shape
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length, double width)
	{
		this.length=length;
		this.width=width;
		
	}

	public void getArea(double length,double width)
	{
		area=length*width;
		System.out.println("The area is: " + area);
		
	}
}
public class Rectangle extends Shape
{
	private double height;
	private double volume;
	
	public void setRectangle (double height)
	{
		this.height=height;
	}
	
	public void getVolume(double length,double width,double height)
	{
		volume=length*width*height;
		System.out.println("The volume is: " + volume);
	}
	
	public static void main(String [] args)
	{
		double c=12.2,d=5.5,e=7.8;
		Rectangle a = new Rectangle();
		a.getArea(c,d);
		a.getVolume(c,d,e);
		
	}
}	
Fahmi
Fahmi
Shape1.java
public class Shape1  
{ 
   
   protected double length; 
   protected double width; 
   private double area;
  
    
   public void setShape (double length, double width)   
   {
    this.length=length; 
	this.width=width;
 
   } 
    
	public void getArea(double length, double width) 
	{ 
	   area=length*width; 
	   System.out.println("Area is" +area);
	} 
	
}	

Rectangle.java 
public class Rectangle extends Shape1 
  { 
    private double height; 
	private double volume; 
	
	
	  public void setRectangle (double hieght)
    { 
	   this.height=height; 
    } 

      public void getVolume(double length,double width,double height)
	  
    { 
      volume=length*height*width; 
      System.out.println("voulume is" +volume);	  
    } 


	public static void main(String[] args)  
	{
	double 
	a=10.0,b=20.0,c=30.0; 
	Rectangle demo= new Rectangle(); 
	demo.getVolume(a,b,c); 
	demo.getArea(a,b); 
  	}
  }	  
Halim bin Sayadi
Halim bin Sayadi 
Shape1.java 

public class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void getShape (double length, double width)
	{
		this.length = length;
		this.width = width;
	}
	
	public void getArea(double length, double width)
	{
		area = length * width;
		System.out.println ("The Area is " + area);
	}

}

Rectangle.java
class Rectangle extends Shape1 
{
	private double height;
	private double volume;
	
	public void setRectangle(double height)
	{
		this.height = height;

	}
	
	public void getVolume(double length, double width, double height)
	{
		volume =length * width * height;
		System.out.println ("The Volume is " + volume);
	}
	
	public static void main (String [] args)
	{
		double p = 10.2, q = 11.5, r = 5.1;
		Rectangle x = new Rectangle();
		x.getVolume(p,q,r);
		x.getArea(p,q);
	}
}



coding(ameer)
coding(ameer)
Shape1.java

class Shape1
{
	protected double length;
	protected double width;
	private double area;
	
	public void setShape(double length,double width){
		
		this.length=length;
		this.width=width;
	}
	
	public void getArea(double length,double width){
	
	area=length*width;
	System.out.println("Area is "+area);
	}
	
}

Rectangle.java

class Rectangle extends Shape1{

	private double height;
	private double volume;
	
	public void setRectangle(double height){
	
	this.height=height;
	}
	public void getVolume(double length,double width,double height){
	
	volume=length*width*height;
	System.out.println("volume is "+volume);
	
	}
	
	public static void main(String[]args){
		
		double a=10.1,b=22.0,c=2.0;
		Rectangle demo = new Rectangle();
		demo.getVolume(a,b,c);
		demo.getArea(a,b);
		

	}
}
Exercise
Exercise

# data[].attributes.body
Shape1.java

class Shape1
{
protected double length;
protected double width;
private double area;

public void setShape(double length,double width){

this.length=length;
this.width=width;
}

public void getArea(double length,double width){

area=length*width;
System.out.println("Area is "+area);
}

}

Rectangle.java

class Rectangle extends Shape1{

private double height;
private double volume;

public void setRectangle(double height){

this.height=height;
}
public void getVolume(double length,double width,double height){

volume=length*width*height;
System.out.println("volume is "+volume);

}

public static void main(String[]args){

double a=10.1,b=22.0,c=2.0;
Rectangle demo = new Rectangle();
demo.getVolume(a,b,c);
demo.getArea(a,b);

}
}