创建对象
public class Puppy{
public Puppy(String name){
//这个构造器仅有一个参数:name
System.out.println("Passed Name is :" + name );
}
public static void main(String []args){
// 下面的语句将创建一个Puppy对象
System.out.println("main");
Puppy myPuppy = new Puppy( "tommy" );
}
}