public class Bootchy {
int bootch;
String snootch;
public Bootchy() {
this("snootchy");
System.out.print("first ");
}
public Bootchy(String snootch) {
this(420, "snootchy");
System.out.print("second ");
}
public Bootchy(int bootch,String snootch) {
this.bootch = bootch;
this.snootch = snootch;
System.out.print("third ");
}
public static void main(String[] args)
{
Bootchy b = new Bootchy();
System.out.print(b.snootch + " " + b.bootch);
}
}
Output :
E:\>javac Bootchy.java
E:\>java Bootchy
third second first snootchy 420
2006-08-17
18:39:07
·
1 answers
·
asked by
K Ban
2
in
Computers & Internet
➔ Programming & Design