1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | /* Classe Dimension. Definisce la dimensione di un oggetto con le proprietà di base e altezza. */ class Dimension { private $w; private $h; function __construct($w, $h) { $this->w = $w; $this->h = $h; } function getWidth() { return $this->w; } function getHeight() { return $this->h; } function setWidth($w) { $this->w = $w; } function setHeight($h) { $this->h = $h; } function __destruct() { unset($w); unset($h); } } |
Dimension 1.0
21 Nov 2009 at 16:50
No Comment
Leave a Reply
