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:

Haha, this question is like a game of 'Guess the Abstraction'. I'm going with D) Point3, just to keep the guessing going!
upvoted 0 times
...
Queen
11 days ago
Wait, I thought abstract classes couldn't be instantiated? E) None, the code is invalid seems like the right choice to me.
upvoted 0 times
...
Ty
12 days ago
I think the answer is C) Point2. The Point2 class extends the non-abstract Point1 class, so it should be able to be instantiated.
upvoted 0 times
...
Rosina
17 days ago
I disagree, I think Point2 can also be instantiated since it extends Point1.
upvoted 0 times
...
Willetta
18 days ago
The correct answer is B) Point1. The Point1 class can be instantiated because it extends the abstract Graphics class and implements the required draw() method.
upvoted 0 times
Darrin
2 days ago
A) Graphics
upvoted 0 times
...
...
Natalya
22 days ago
I agree with Ronny, Point1 is the only class that can be instantiated because it extends Graphics.
upvoted 0 times
...
Ronny
23 days ago
I think only Point1 can be instantiated.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77