Single Choice Not Set

QPHP recognizes constructors by the name.

ID: #2565 Object Oriented Concept of PHP 3,082 views
Question Info
#2565Q ID
Not SetDifficulty
Object Oriented Concept of PHPTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A classname()
  • B _construct()
  • C function _construct()
  • D function __construct()
Correct Answer

Explanation

A double underscore followed by the construct keyword. Its syntax is function __construct ([ argument1, argument2,.....]) { Class Initialization code }

Share This Question

Challenge a friend or share with your study group.