these are 2 classes.
can anyone explain me about the things in bold and the other contents.
public class tuna{
private String name;
private potpie birthday;
public tuna(String nm,potpie bday){
birthday=bday;
name=nm;
}
public String hs(){
return String.format("My Name is %s, My Birthday is %s", name,birthday);
}}
public class potpie {
private int year;
private int day;
private int month;
public potpie(int y,int d,int m){
year=y;
day=d;
month=m;
System.out.printf("The date is %s\n", this);
}
public String toString(){
return String.format(" %d/%d/%d",year,day,month);
}}