public function getX4() { return $this->x4; } public function setY4($y4) { settype($y4, "integer"); $this->y4 = $y4; } public function getY4() { return $this->y4; } public function display() { parent::display(); // TODO: Change the autogenerated stub echo "x4=" . $this->x4 . "</br>"; echo "y4=" . $this->y4 . "</br>"; } } $rect = new Rectangle(); $rect->setX1(0); $rect->setY1(0); $rect->setX2(0); $rect->setY2(5); $rect->setX3(5); $rect->setY3(5); $rect->setX4(5); $rect->setY4(0); $rect->display();