New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend 200-710 Exam - 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:

0/2000 characters
Lennie
3 months ago
Definitely, none of the abstract classes can be instantiated!
upvoted 0 times
...
Estrella
3 months ago
So, no way to create a Graphics object, right?
upvoted 0 times
...
Abel
4 months ago
Wait, can’t Point2 inherit from Point1?
upvoted 0 times
...
Oneida
4 months ago
Agreed, Point1 and Point3 are abstract.
upvoted 0 times
...
Osvaldo
4 months ago
Only Point2 can be instantiated.
upvoted 0 times
...
Micah
4 months ago
I feel like I saw a similar question before, and it was about instantiating subclasses. I think Point1 and Point2 are the only ones we can use.
upvoted 0 times
...
Ira
4 months ago
Point2 should be instantiable too, right? Since it extends Point1, which is not abstract.
upvoted 0 times
...
Bea
5 months ago
I'm not entirely sure, but I think Point1 can be instantiated since it has a concrete draw method.
upvoted 0 times
...
Linwood
5 months ago
I remember that abstract classes can't be instantiated, so I think Graphics and Point3 can't be created.
upvoted 0 times
...
Leota
5 months ago
Ah, I see now. The abstract classes can't be instantiated, but the concrete class Point2 can be. Thanks for the helpful comments, everyone. I feel more confident about this now.
upvoted 0 times
...
Gail
5 months ago
I'm a bit confused here. Since Point1 is abstract, does that mean Point2 is the only one that can be instantiated? Or are there other options?
upvoted 0 times
...
Dawne
5 months ago
Okay, let me think this through step-by-step. The Graphics class is abstract, so it can't be instantiated. Point1 is also abstract, but Point2 extends it, so Point2 can be instantiated. Point3 is abstract, so it can't be instantiated.
upvoted 0 times
...
Leslee
5 months ago
Hmm, this looks tricky. I'll need to carefully analyze the abstract and concrete classes to determine which ones can be instantiated.
upvoted 0 times
...
Kandis
5 months ago
I think I've got it! Point2 can be instantiated because it extends the concrete Point1 class. Point1 can also be instantiated since it has a constructor and a non-abstract draw() method. So the answer is B and C.
upvoted 0 times
...
Lenita
5 months ago
Hmm, I'm a bit unsure about this one. The options seem to cover a range of different networking concepts, so I'll need to make sure I understand the scope of the EFM standard specifically.
upvoted 0 times
...
Werner
5 months ago
Hmm, this seems like a tricky one. I'll need to carefully review the topology and think through the potential issues step-by-step.
upvoted 0 times
...
Luis
5 months ago
This looks like a straightforward question about the definitions of different types of contracts. I'll focus on carefully reading the question and options to identify the key differences between the two contract types.
upvoted 0 times
...
Carrol
5 months ago
This seems like a straightforward question. I'll start by reviewing the AppSource for any prebuilt solutions that could handle the currency exchange rate updates.
upvoted 0 times
...
Hyman
10 months ago
This exam is really testing our ability to abstract-ly think. I'm going to go with 'None of the Above' and just become a Hyman instead.
upvoted 0 times
Leontine
8 months ago
E) None, the code is invalid
upvoted 0 times
...
Cristy
8 months ago
D) Point3
upvoted 0 times
...
Carmela
8 months ago
D) Point3
upvoted 0 times
...
Stephane
8 months ago
C) Point2
upvoted 0 times
...
Sheridan
8 months ago
C) Point2
upvoted 0 times
...
Patrick
9 months ago
B) Point1
upvoted 0 times
...
Ora
9 months ago
B) Point1
upvoted 0 times
...
Katy
9 months ago
A) Graphics
upvoted 0 times
...
Edna
9 months ago
A) Graphics
upvoted 0 times
...
...
Nakisha
10 months ago
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
Teri
9 months ago
C) Point2
upvoted 0 times
...
Hortencia
9 months ago
B) Point1
upvoted 0 times
...
Theola
10 months ago
A) Graphics
upvoted 0 times
...
...
Queen
11 months 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
Evelynn
10 months ago
Yes, you're correct. Option E) None, the code is invalid is the right choice.
upvoted 0 times
...
Michell
10 months ago
I think you're right, abstract classes cannot be instantiated.
upvoted 0 times
...
...
Ty
11 months 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
11 months ago
I disagree, I think Point2 can also be instantiated since it extends Point1.
upvoted 0 times
...
Willetta
11 months 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
Hildegarde
10 months ago
E) None, the code is invalid
upvoted 0 times
...
Jacinta
10 months ago
D) Point3
upvoted 0 times
...
Devon
10 months ago
C) Point2
upvoted 0 times
...
Robt
10 months ago
B) Point1
upvoted 0 times
...
Darrin
10 months ago
A) Graphics
upvoted 0 times
...
...
Natalya
11 months ago
I agree with Ronny, Point1 is the only class that can be instantiated because it extends Graphics.
upvoted 0 times
...
Ronny
11 months ago
I think only Point1 can be instantiated.
upvoted 0 times
...

Save Cancel