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

Publicado el: 26 marzo 2021
en el canal de: 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


En esta página del sitio puede ver el video en línea Static Properties & Methods In Object Oriented PHP - Full PHP 8 Tutorial de Duración hora minuto segunda en buena calidad , que subió el usuario Program With Gio 26 marzo 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 35,102 veces y le gustó 1.5 mil a los espectadores. Disfruta viendo!