PHP OOP Bangla Tutorial part-4 (static properties and methods)

Published: 15 August 2018
on channel: Code With Mehedi
832
19

PHP OOP Bangla Tutorial part-4 (static properties and methods)
static properties and methods
Class properties and methods can be declared with static keyword which makes them class level features and we don't need a class instance to access those features.

Like class constants we access static properties/methods with double colon (::) and to access them within class we use self keyword.

$this is not available inside a static method.

By default static features have 'public' accessibility.

For static variable initialization, the same rules apply as const expressions.


Watch video PHP OOP Bangla Tutorial part-4 (static properties and methods) online without registration, duration hours minute second in high quality. This video was added by user Code With Mehedi 15 August 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 832 once and liked it 19 people.