object oriented programing-intro
TRANSCRIPT
Dog
sizebreadname
Bark()
Dog
ColoreyeColorheightlengthweight
Sit()layDown()Shake()Come()
Dog
ColoreyeColorheightlengthweight
Sit()layDown()Shake()Come()
Dog dog = new Dog();
Public Dog{color = “”;height = 0;weight = 0;
}
Public Dog (String color, int height, int weight){
this.color = color;this.height = height;this.weight = weight;
}