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
2 months agoLeontine
20 days agoCristy
21 days agoCarmela
22 days agoStephane
22 days agoSheridan
26 days agoPatrick
1 months agoOra
1 months agoKaty
1 months agoEdna
2 months agoNakisha
3 months agoTeri
1 months agoHortencia
2 months agoTheola
2 months agoQueen
3 months agoEvelynn
2 months agoMichell
2 months agoTy
3 months agoRosina
3 months agoWilletta
3 months agoHildegarde
2 months agoJacinta
3 months agoDevon
3 months agoRobt
3 months agoDarrin
3 months agoNatalya
3 months agoRonny
4 months ago