java-object-classes1

Run Settings
LanguageJava
Language Version
Run Command
public class Puppy{ public Puppy(String name){ //这个构造器仅有一个参数:name System.out.println("小狗的名字是 : " + name ); } public static void main(String []args){ // 下面的语句将创建一个Puppy对象 Puppy myPuppy = new Puppy( "tommy" ); } }
Editor Settings
Theme
Key bindings
Full width
Lines