Thanks for this video... unfortunately will need to watch again..... as it went over my head.... not sure if you can provide practical example on Salesforce use case where it makes sense to use Static vs non-static.... will you cover return type on another video (like void)?
Its interesting to me that in this example of the word "static" which literally means to not change, but in programming it means that it can be changed and will be the same for all instances, but the non-static variable is the thing that doesn't change from instance to instance which, to me, fits more of the description of the word "Static" lol..
Hi Matt. So I think I understand your explanation, but I'd like to bounce an example off of you that I thought up while watching this video. If I wanted to create a class that calculated the area of a circle, I could create a static decimal variable called 'pi' and set the value to 3.1415925. Then every time that class got instantiated, it could take that variable and multiply it by the squared radius (which the end user would provide). Does that sound like a good example for when you'd want a variable to be set to static?
8:48 'Awesome String.. Bruh' I can't stop laughing man you're too funny
Thanks for this video... unfortunately will need to watch again..... as it went over my head.... not sure if you can provide practical example on Salesforce use case where it makes sense to use Static vs non-static.... will you cover return type on another video (like void)?
Its interesting to me that in this example of the word "static" which literally means to not change, but in programming it means that it can be changed and will be the same for all instances, but the non-static variable is the thing that doesn't change from instance to instance which, to me, fits more of the description of the word "Static" lol..
Thank you for the useful video (as usual)
WOW this is great!
Mind blow 🤯
Finally ! thanks father
Hi Matt. So I think I understand your explanation, but I'd like to bounce an example off of you that I thought up while watching this video.
If I wanted to create a class that calculated the area of a circle, I could create a static decimal variable called 'pi' and set the value to 3.1415925. Then every time that class got instantiated, it could take that variable and multiply it by the squared radius (which the end user would provide). Does that sound like a good example for when you'd want a variable to be set to static?
u are just the best big love 😘
Hello Matt. Thanks for this really helpful vide. 👍
May I know which software you used to code for this video?
Great Video
Thanks!
Of course, I'm glad I could help!
19:59
This is the most confusing concept so far.
How is the static variable different from a constructor?