Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 2 Question 64 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 64
Topic #: 2
[All 200-710 Questions]

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 { }

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Natalya
1 days ago
I agree with Ronny, Point1 is the only class that can be instantiated because it extends Graphics.
upvoted 0 times
...
Ronny
2 days ago
I think only Point1 can be instantiated.
upvoted 0 times
...

Save Cancel