Looking for 12.Backend programozás és tesztelés_SZFT5 test answers and solutions? Browse our comprehensive collection of verified answers for 12.Backend programozás és tesztelés_SZFT5 at moodle.njszki.hu.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Párosítsa a következő fogalmakhoz a megfelelő leírást.
Mit eredményez az alábbi kód?
$names = [2 => "Alex", "John", "Jack"];
echo $names[3];
A kód lefut, és 0-át ír ki.
class Demo { public static $count = 0;}echo Demo::$count;
A kód 16-ot ír ki.
class Math { public static function square($n) { return $n * $n; }}echo Math::square(4);
Az alábbi kód Sound-ot ír ki.
class Animal { public function speak() { echo "Sound"; }}
class Dog extends Animal {}
$d = new Dog();$d->speak();