ExamVeda
Login
Home
This question belongs to PHP Object Oriented Concept
Object Oriented Concept
?

In the PHP code given below, what is/are the properties?
<?php
    class Example 
    {
        public $name;
        function Sample()
        {
            echo "This is an example";
        }
    } 
?>

Answer & Solution
Correct Answer: Option B
Yes they are nothing but variables.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.