In the following code, which classes can be instantiated?
abstract class Graphics {
abstract function draw($im, $col);
}
abstract class Point1 extends Graphics {
public $x, $y;
function __construct($x, $y) {
$this->x = $x;
$this->y = $y;
}
function draw($im, $col) {
ImageSetPixel($im, $this->x, $this->y, $col);
}
}
class Point2 extends Point1 { }
abstract class Point3 extends Point2 { }
Hyman
1 months agoPatrick
6 days agoOra
6 days agoKaty
16 days agoEdna
18 days agoNakisha
2 months agoTeri
10 days agoHortencia
25 days agoTheola
1 months agoQueen
2 months agoEvelynn
1 months agoMichell
1 months agoTy
2 months agoRosina
2 months agoWilletta
2 months agoHildegarde
1 months agoJacinta
2 months agoDevon
2 months agoRobt
2 months agoDarrin
2 months agoNatalya
3 months agoRonny
3 months ago