Object Oriented Concept - Study Mode

[#56] Which of the following advanced OOP features is/are not supported by PHP? 1. Method overloading 2. Multiple Inheritance 3. Namespaces 4. Object Cloning
Correct Answer

(C) 1 and 2

Explanation

Solution: The advanced OOP features are: Object cloning, Inheritance, Interfaces, Abstract classes, and Namespaces.

[#57] Which version of PHP introduced the advanced concepts of OOP?
Correct Answer

(B) PHP 5

[#58] The class from which the child class inherits is called. 1. Child class 2. Parent class 3. Super class 4. Base class
Correct Answer

(D) 2 and 4

[#59] Which of the following is/are true for an abstract class? 1. A class is declared abstract by prefacing the definition with the word abstract. 2. A class is declare abstract by using the keyword implements. 3. It is a class that really isn’t supposed to ever be instantiated but instead serves as a base class. 4. Attempting to instantiate an abstract class results in an error.
Correct Answer

(A) Only 2

[#60] PHP recognises constructors by the name . . . . .
Correct Answer

(B) __construct