Video není dostupné.
Omlouváme se.

C++ classes: static and instance class member variables and functions [1]

Sdílet
Vložit
  • čas přidán 4. 04. 2023
  • Learn how to share variables between class instances. This C++ tutorial for beginners will cover static variables and functions and instance variables. All C++ class static members will be covered. You'll see an example class in a program written in Visual Studio 2022 C++ .
    // Join the new Programming for Everyone Community Forum:
    professorhank.freeforums.net/
    // Learn More //
    More About Classes playlist: • CH14: More About Classes
    // Consider supporting this channel in multiple ways
    paypal.me/hankstalica1
    Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB

Komentáře • 14

  • @sofiaandrino2370
    @sofiaandrino2370 Před 9 měsíci +8

    This is by far the best explanation of static and instance variables. I can't believe this hasn't gone viral. Thank you so much for the detailed explanation, Professor! Please make more videos on c++!!

    • @ProfessorHankStalica
      @ProfessorHankStalica  Před 9 měsíci +2

      Glad you liked it. I've got hundreds of videos on the channel and will be adding more in the future. Thanks for the comment!

  • @Brusselsprouts2023
    @Brusselsprouts2023 Před 4 měsíci +2

    Wow that made it easy to understand!!

  • @dwivedys
    @dwivedys Před 3 měsíci

    Excellent video - thanks a lot

  • @qcnck2776
    @qcnck2776 Před rokem +1

    Clean, simple graphics: add nicely to the explanation😀

  • @Diamond_Hanz
    @Diamond_Hanz Před rokem

    Prof H back at it!

  • @sudarshan740
    @sudarshan740 Před rokem

    Wow sir ❤❤❤❤❤

  • @freedom4218
    @freedom4218 Před měsícem

    Thank you SO much

  • @nitishbidwe1108
    @nitishbidwe1108 Před 5 měsíci

    is there any static class in c++? can we invoke static method before our main ()?

    • @ProfessorHankStalica
      @ProfessorHankStalica  Před 4 měsíci

      No static class, just static class members. You can access a static variable, but can't invoke a static method before main. main() is the public static void main from Java.

  • @lorddoinkus6349
    @lorddoinkus6349 Před rokem

    Professor, what textbook do you use for these videos?

    • @ProfessorHankStalica
      @ProfessorHankStalica  Před rokem +1

      Here you go:
      www.pearson.com/en-us/subject-catalog/p/Gaddis-Solutions-for-Starting-Out-with-C-from-Control-Structures-to-Objects-9th-Edition/P200000007369/9780134443829