Salesforce Apex Master Class (Ep. 20) - What is the Static Keyword in Apex?

Поділитися
Вставка
  • Опубліковано 16 жов 2024

КОМЕНТАРІ • 15

  • @alic
    @alic 7 місяців тому

    8:48 'Awesome String.. Bruh' I can't stop laughing man you're too funny

  • @pedroprada1
    @pedroprada1 2 роки тому +4

    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)?

  • @drmordica08
    @drmordica08 Рік тому +2

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

  • @Vitalii_Ivakin
    @Vitalii_Ivakin Рік тому

    Thank you for the useful video (as usual)

  • @stephaniegrigsby1455
    @stephaniegrigsby1455 2 роки тому +1

    WOW this is great!

  • @sfl77
    @sfl77 2 роки тому +1

    Mind blow 🤯

  • @Renato-ul3mb
    @Renato-ul3mb 2 роки тому +1

    Finally ! thanks father

  • @craigmunster5715
    @craigmunster5715 Рік тому

    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?

  • @WTF-ox4ps
    @WTF-ox4ps Рік тому

    u are just the best big love 😘

  • @Subhodsf
    @Subhodsf Рік тому

    Hello Matt. Thanks for this really helpful vide. 👍
    May I know which software you used to code for this video?

  • @karthikvilla4300
    @karthikvilla4300 Рік тому

    Great Video

  • @IrinaB-o5b
    @IrinaB-o5b Рік тому

    Thanks!

  • @바짝-v5k
    @바짝-v5k Рік тому

    19:59

  • @popout886
    @popout886 11 місяців тому

    This is the most confusing concept so far.
    How is the static variable different from a constructor?