Краткое содержание лекции | Практические задания
_test
test_
Test_
Test
1Test
Test1
_Хлеб
Хл$b
Bre$ad
public $attribute;
public $_attribute;
public $Attribute;
public $UserInfo;
public $userInfo;
public $userInfo = array();
public static $userInfo;
static public $userInfo;
var $attribute;
private $attribute;
$attribute;
private static $attribute;
protected $attribute;
final protected $attribute;
final public $attribute;
final private $attribute;
abstract private $attribute;
function 101advice() {}
public function getadvice() {}
public function getAdvice() {}
function getAdvice() {}
final private getAdvice() {}
final private static getAdvice() {}
abstract protected static function() {}
Test
объявлена статическая переменная $value = 5;
. Какие способы обращения к этой переменной валидны?
echo Test::$value;
echo Test::value;
echo Test::$VALUE;
echo TEST::$value;
$test = new Test(); echo $test::$value;
$test = new Test(); echo $test->$value;
Test
являются невалидными?
function __construct() {}
public function __construct() {}
protected function __construct() {}
private function __construct() {}
public function __construct($attribute1, $attribute2 = 5) {}
function Test() {}
function TEST() {}
class User {}
abstract class User {}
final abstract class User {}
final class User {}
private class User {}
class User extends BaseUser {}
abstract class User extends BaseUser {}
abstract class User extends BaseUser, NullUser {}
class User extends BaseUser implements Signed {}
class User extends BaseUser implements SignedInterface {}
class User extends BaseUser implements SignedInterface, AclInterface, NullableInterface {}
abstract class User extends BaseUser implements SignedInterface {}