Zend PHP 5.3 Certification 200-530 Question # 25 Topic 3 Discussion

Zend PHP 5.3 Certification 200-530 Question # 25 Topic 3 Discussion

200-530 Exam Topic 3 Question 25 Discussion:
Question #: 25
Topic #: 3

What is the output of the following code?

class test {

public $value = 0;

function test() {

$this->value = 1;

} function __construct() {

$this->value = 2;

}}

$object = new test();

echo $object->value;


A.

2


B.

1


C.

0


D.

3


E.

No Output, PHP will generate an error message.


Get Premium 200-530 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.