public class Teste {
private int a=1;
private double b=2;
private long c=3;
public Teste(int i) {
this.a=i;
}
public Teste(double d) {
this.b=d;
}
public Teste(long l) {
this.c=l;
}
public void printValues(){
System.out.print(this.a+" ");
System.out.print(this.b+" ");
System.out.print(this.c+".");
}
public static void main(String[] args) {
try {
double l=4.0;
Teste t = new Teste(l);
t.printValues();
} catch(Exception e) {
e.printStackTrace();
}
}
}
Na linguagem PHP, $_REQUEST se refere a um array associativo
Fonte: ANALISTA DO MINISTéRIO PúBLICO ESTADUAL - SUPORTE TéCNICO - TECNOLOGIA DA INFORMAçãO / MPE/RN / 2012 / FCC