object oriented programing - intro

Post on 14-Feb-2017

62 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

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;

}

top related