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