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, duration hours minute second in high quality that is uploaded to the channel Code With Mehedi 15 August 2018. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 832 times and liked it 19 visitors.