16

Object Oriented Programing - Intro

Embed Size (px)

Citation preview

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;

}