package lianxii;
public class ReferenceType {
private int day = 12;
private int month = 6;
private int year = 1900;
public ReferenceType(int d, int m, int y) {
year = y;
month = m;
day = d;
}
public void display() {
System.out.println(year + "/" + month + "/" + day);
}
public static void main(String[] args) {
ReferenceType m;
m = new ReferenceType(22, 9, 2014);
m.display();
}
}
public class ReferenceType {
private int day = 12;
private int month = 6;
private int year = 1900;
public ReferenceType(int d, int m, int y) {
year = y;
month = m;
day = d;
}
public void display() {
System.out.println(year + "/" + month + "/" + day);
}
public static void main(String[] args) {
ReferenceType m;
m = new ReferenceType(22, 9, 2014);
m.display();
}
}