... day;}public MyDate copy() {return new MyDate(day, month, year);}Nguyễn Việt HàThem ve Java 19 Hieu them ve JavaTruyên tham chiêuMyDate dl = MyDate(2005 MyDate d2 = MyDate(2000 dl.copy(d2);MyDate ... .getValue())Nguyễn Việt HàThem ve Javathis lam tham soclass Document {Viewer vi;• • •Document(Viewer v) { vi — v;}void display() {v .display(this);}}Nguyễn Việt HàThem ve JavaGoi constructor ... MyDate(10,10,1954); MyDate d2 = new MyDate(dl);System.out.printIn(dl.equalTo(d2));Nguyễn Việt HàThem ve JavaGiải phóng bộ nhớ động(Garbage collection)■ Lập trình viên không cần phải giải phóng đối...