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
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
2857
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