编辑代码

class Main {
	public static void main(String[] args) {
        //JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
		System.out.println("Hello world!   - java.jsrun.net ");
        Dog a = new Dog();
        Dog b = new Dog("ads",6,"white",5);
        b.printDog();
        a.breed = "aaaa";
        a.size = 6;
        a.printDog();
	}
}

class Dog{
    String breed;
    int size;
    String colour;
    int age;
    static double height = 6;
    public Dog(){

    }
    public Dog(String breeds, int sizes, String colours, int ages){
        breed = breeds;
        size =sizes;
        colour = colours;
        age = ages;
    }
    void printDog(){
        System.out.println(breed);
        }
    void eat(){ 
        int a = 6;
    }
    void run(){
    }
    void sleep(){
    }
    void name(){
    }
}