Skip to content
AGMadera edited this page May 27, 2015 · 1 revision

public class Test1{

      public Test1 (){}
      public void Test1(){} /// Es un metodo

}

////////////////////E.T.E 2///////////////////////////////

public class Test1{

 int x;
 float y;
       public Test1 (int x, float y){}
       public Test1 (float x, int y){}
       public Test1 (int y, float x){}///////error, no pueden ser duplicados

}

 public class Probar {
 public static void main (String args[]){
 test1 objeto1 = new test1(5.85f, 12);
 test1 objeto2 = new test1(7, 5.8);
 }

}

Clone this wiki locally