110 likes | 254 Views
COMP 3063. Object Oriented Descriptions. Human Body. Class Human Body. Components. Height, weight. Attributes height, Heart. Methods walking(). Heart. Components. Class Heart. Actions. Attributes size. pumping. Building an OO Model. Methods pumping(). Actions.
E N D
Object Oriented Descriptions Human Body Class Human Body Components Height, weight Attributes height, Heart Methods walking() Heart Components Class Heart Actions Attributes size pumping Building an OO Model Methods pumping() Actions Walking Remaining Alive
Task 1 Task1GUI DisplayCanvas SimpleShape
Inheritance inheritance overloading
Parameters public class SimpleShape { public double x,y; public double width, height; public Color color; private double hue; private Shape myShape; public SimpleShape(double xx,double yy,double wwidth, double height, double hhue) { this.hue = hhue; this.x = xx; this.y = yy; this.width = wwidth; this.height = hheight; … }