11. Inheritance is the means by which one or more classes can be derived from a/an ___ class.
12. What will be the output of the following PHP code?
<?php
class MyClass
{
}
$a = new MyClass;
var_dump(!($a instanceof stdClass));
?>
<?php
class MyClass
{
}
$a = new MyClass;
var_dump(!($a instanceof stdClass));
?>
13. What should be used to refer to a method in the context of a class rather than an object you use?
14. Prior to which version of PHP did constructors took the name of the enclosing class.
15. Which method or property can only be accessed from within the enclosing class? Even subclasses have no access.
16. A mutator method is also called as.
17. Which version of PHP introduced the static keyword?
18. Which keyword is used to access a static method or property from within the same class(rather than from child)?
19. In which of the following circumstance should you use a static reference to a non static method?
20. Which one of the following variable cannot be used inside a static method?
Read More Section(Object Oriented Concept)
Each Section contains maximum 100 MCQs question on Object Oriented Concept. To get more questions visit other sections.