Home / MCQ Bank / Computer
Computer Object Oriented Concept Difficulty: Medium

Which of the following statements is/are true about Constructors in PHP? 1. PHP 4 introduced class constructors. 2. Constructors can accept parameters. 3. Constructors can call class methods or other functions. 4. Class constructors can call on other constructors.

Select the correct option to test your answer:

More Computer Questions

Which of the following apache project is gaining a lot of traction steadily with the efforts of its committers? Relations are: The WWW is made up of the set of interconnected . . . . . . . . that are linked together over the Internet. What will be the output of the following C code if these two files namely test.c and test1.c are linked and run? -------file test.c------- #include <stdio.h> #include ""test.h"" int main() { i = 10; printf(""%d "", i); foo(); } -----file test1.c------ #include <stdio.h> #include ""test.h"" int foo() { printf(""%d\n"", i); } -----file test.h----- #include <stdio.h> #include <stdlib.h> static int i; Which of the following functions are referenced internally?