public function display() { parent::display(); echo "x2=" . $this->x2 . "</br>"; echo "y2=" . $this->y2 . "</br>"; }