Unix/MSDOS Command summary

Comments about Javadoc's first sentence:

Comments about Interfaces:


syntax examples:
   [public][abstract|final] class classname [extends superclass] [implements interface1, ...]
          { [fieldlist;]
            [constructorlist;]
            [methodlist;]
 
         }

   class point {

   //field list::= [static][final][public|private|protected] fieldtype fieldname [assignment];

             int g; //default public
   protected int h;
   private   int x, y; // coordinates of the point
   public static final int zero =0; //constant


   // constructor::=[public|private|protected] classname ([paramlist]){ [statementlist;] }

   public point() { x=0; y=0; } // no-argument constructor method

   // constructor method
   public point(int ix, int iy) { x=ix; y=iy; } //this.y=iy; also works

   //method
   // [static][final][public|private|protected] returntype methodname [paramlist] { [statementlist;] }
   // [protected void finalize() throws Throwable{ }; }

   public void setxy(int ix, int iy) { x=ix; y = iy; }

   public int getx() { return x; }

   public int gety() { return y; }

   public String toString() {
	return "[" + x + ", " + y + "]";
   }

   public String getname() {
	return "point";
   }
}