Static Properties & Methods In Object Oriented PHP - Full PHP 8 Tutorial

Veröffentlicht am: 26 März 2021
auf dem Kanal: Program With Gio
35,102
1.5k

In the first section of the course, you learned about variable scopes & static variables. In this lesson, you will learn about static properties & methods of the class with some use cases including singleton & factory design patterns. There are few differences between static properties & non-static properties, one is that static properties are associated & belong to the class itself & not to any particular object, while non-static properties are associated & belong to the object. So when you create an object, that object gets fresh values for the non-static properties. Another difference is that you need to use the dollar sign when accessing static properties, unlike regular properties where you don't use the dollar sign to access non-static properties.

SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon:   / programwithgio  
THANK YOU!

LESSON 2.7
Course Outline - https://github.com/ggelashvili/learnp...
Course Playlist -    • Learn PHP The Right Way - Full PHP Tutoria...  

RESOURCES
Video About Static Variables & Scopes -    • PHP Variable Scopes - Static Variables - F...  &t=193


Auf dieser Seite können Sie das Online-Video Static Properties & Methods In Object Oriented PHP - Full PHP 8 Tutorial mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Program With Gio 26 März 2021 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 35,102 Mal angesehen und es wurde von 1.5 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!