Make your own free website on Tripod.com

import java.io.*;


class fraction
 { private int num;
   private int den;

  public fraction()  // default constructor - set num to 0, den to 1
    {
     }

public fraction(int n,int d)
  {
  }

public void printfraction()
  {
  }

public void reduce()
  { }

 public int getden()
  {
   }

  public int getnum()
   {
    }

 public fraction add(fraction f)
   {
   }

   public fraction subtract(fraction f)
      {
   }

   public fraction multiply(fraction f)
      {
      }

   public fraction divide(fraction f)
      {
      }

}