class咋在程序中找不到啊
class Mydate{
char bir;
Mydate(char bir)
{
this.bir=bir;
}
char get()
{
return bir;
}
}
public class Person
{
String name;
Mydate birthday;
Person(String name,Mydate birthday)
{
this.name=name;
this.birthday=birthday;
}
public Person(Person p)
{
this(p.name,p.birthday);
}
public static void main(String args[])
{
Person p1=new Person("李小明",new Mydate("1979,3,15"));
System.out.println(p1.name+p1.birthday);
Person p2=new Person(p1);
System.out.println(p2.name+p2.birthday);}
}
这咋不行啊!!请各位指点一下!!!