PHP

PHP

Advanced Object-Oriented has 10 Questions
Which of the following advanced OOP features is/are not supported by PHP? i) Method overloading ii) Multiple Inheritance iii) Namespaces iv) Object Cloning

All of the mentioned
None of the mentioned
i) and ii)
iii) and iv)
Which version of PHP introduced the advanced concepts of OOP?

PHP 4
PHP 5
PHP 5.3
PHP 6
Which one of the following is the right way to clone an object?

_clone(targetObject);
destinationObject = clone targetObject;
destinationObject = _clone(targetObject);
destinationObject = clone(targetObject);
The class from which the child class inherits is called.. i) Child class ii) Parent class iii) Super class iv) Base class

Only i)
ii), iii) and iv)
Only iii)
ii) and iv)
Which of the following is/are true for an abstract class? i) A class is declared abstract by prefacing the definition with the word abstract. ii) A class is declare abstract by using the keyword implements. iii) It is a class that really isn't supposed to ever be instantiated but instead serves as a base class. iv) Attempting to instantiate an abstract class results in an error.

Only ii)
All of the mentioned
ii) and iv)
ii), iii) and iv)
If one intends to create a model that will be assumed by a number of closely related objects, which class must be used?

Normal class
Static class
Abstract class
Interface
If your object must inherit behavior from a number of sources you must use a/an

Interface
Object
abstract class
static class
Which method is used to tweak an object's cloning behavior?

clone()
__clone()
_clone
object_clone()
Which feature allows us to call more than one method or function of the class in single instruction?

Typecasting
Method Including
Method adding
Method chaining
Which magic method is used to implement overloading in PHP?

__call
__invoke
__wakeup
__unset