protected function drawLine() { $DP1 = new DP1(); $DP1->draw_a_line($this->_x1, $this->_y1, $this->_x2, $this->_y2); }
public function drawLine($x1, $y1, $x2, $y2) { $DP1 = new DP1(); $DP1->draw_a_line($x1, $y1, $x2, $y2); }