15. What does the following PHP code segment do?
<?php
require_once("myclass.php");
myclass::mymethod();
?>
Вариант ответа 1 - A) Calls the mymethod method in the class statically.
Вариант ответа 2 - B) Creates and instance of myclass and calls the mymethod method.
Вариант ответа 3 - C) Generates a syntax error
Вариант ответа 4 - D) Defaults to the last-created instance of myclass and calls mymethod()
Вариант ответа 5 - E) Calls the function named myclass::mymethod()
Комментарий: The syntax shown in the question is used to call methods within a class from a static context. When methods are called from a static context, they behave like functions, and have no association with any existing instance of the class. The correct answer is A.