Tag: Oriented
-
PHP Quizs Question & Answers Basics of Object-Oriented PHP- 2
Q 1. Which one of the following functions is used to determine whether a class exists?A. exist()B. exist_class()C. class_exist()D. __exist() Show Answer Answer:-C. class_exist() Explanation The class_exist() function returns true or false according to whether the class exists within the currently executing script content. Q 2. Which one of the following functions is used to…
-
PHP Quizs Question & Answers Advanced Object-Oriented
Q 1. Which magic method is used to implement overloading in PHP?A. __callB. __invokeC. __wakeupD. __unset Show Answer Answer:-A. __call Explanation When a class implements __call(), then an object of that class is called with a method that doesn’t exist, __call() is called instead. Q 2. The class from which the child class inherits is…