Static Data Members in C++ & Static Member Functions in C++|C++ programming tutorials for Beginners

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

КОМЕНТАРІ • 106

  • @SimpleSnippets
    @SimpleSnippets  5 років тому +12

    Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌

    • @dariuskasen9229
      @dariuskasen9229 3 роки тому

      Sorry to be so off topic but does anyone know of a tool to get back into an instagram account??
      I was dumb lost my password. I appreciate any tips you can give me

  • @Selva-bx9iy
    @Selva-bx9iy 4 роки тому +23

    Very young and experienced teacher...🙃🙃🙃

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому +1

      Thank you buddy, please do Subscribe to our channel as we have a lot tech educational content which you'll surely like. Also please do share our channel and videos with your friends too, that's the biggest help and support you can provide buddy ✌️

  • @satishkanakappanavar8531
    @satishkanakappanavar8531 5 років тому +3

    You are helping very much to many students

    • @SimpleSnippets
      @SimpleSnippets  5 років тому

      Thank you so much Satish, this really makes me very happy that I'm able to contribute and share my knowledge with so many people ✌️🙏
      Keep sharing and keep up the support ❤️

  • @omkale3132
    @omkale3132 5 років тому +2

    your videos were really helpful for my practical exam on one day before thanks

    • @SimpleSnippets
      @SimpleSnippets  5 років тому

      Thank you so much Om😇. Very happy to hear this from you. Please do share the videos with your friends too 🙏 it'll be very helpful 😇

  • @shreyasachar5528
    @shreyasachar5528 3 роки тому +6

    Jenny's lectures and simple snippets ❤️❤️ONE OF THE WAY TO LEARN AND UNDERSTAND CONCEPTS ❤️

  • @tekina4493
    @tekina4493 3 роки тому +3

    your video is embedded in Chandigarh University course material, Kudos!

    • @SimpleSnippets
      @SimpleSnippets  3 роки тому

      Wow I'm glad to know this🤟 would love it if you could share a link so that I can check it out😊

  • @ayusheez1678
    @ayusheez1678 9 місяців тому +1

    All doubts are cleared thanx

  • @spraygodgamer6539
    @spraygodgamer6539 7 місяців тому +1

    very informative and well explained .. Thanks Simple Snippets 👍❤

  • @mansijain7913
    @mansijain7913 5 років тому +7

    Ur way of explaining is awesome and really helpful.. Keep uploading more such videos..

    • @SimpleSnippets
      @SimpleSnippets  5 років тому

      Hello Mansi, thank you so much for such a wonderful feedback 😇😊
      And yes I'll keep making many more such educational content ✌️
      I would request you to please share the videos with your friends and contacts 😇✌️ that'll be the best help and support for everyone 😊

  • @i1JayChaudhary
    @i1JayChaudhary 3 місяці тому +1

    Thanks🎉

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

    No words ! Thanks a lot 😇

  • @adityamahesh1179
    @adityamahesh1179 5 років тому +1

    You are awesome you are great!! And the thing you are doing is very kind from.your side really man I easily understood this!!!

    • @SimpleSnippets
      @SimpleSnippets  5 років тому

      Most welcome aditya 😊 I'm very glad to hear this from you bro. I would request you to please share this video with your friends too buddy. That's the biggest help and support for our channel 🤟😊

  • @nidhinhari8397
    @nidhinhari8397 5 років тому +2

    Thank you sir

  • @urmadhu6367
    @urmadhu6367 5 років тому +3

    Good explaining keep rocking

    • @SimpleSnippets
      @SimpleSnippets  5 років тому

      Thank you so much brother. Please share the video✌️ and keep up the support 😇

    • @urmadhu6367
      @urmadhu6367 5 років тому

      @@SimpleSnippets ok bro

  • @Pradhee26
    @Pradhee26 8 місяців тому +1

    Loved it!

  • @chandupeddi7312
    @chandupeddi7312 6 років тому +3

    Excellent bro

    • @SimpleSnippets
      @SimpleSnippets  6 років тому +1

      Thank you very much buddy, Please share this video with your friends and contacts because that will be the best help and support for our channel 😇✌

    • @chandupeddi7312
      @chandupeddi7312 6 років тому

      Kk bro

  • @shubhasriallam5143
    @shubhasriallam5143 4 роки тому +4

    Can u give an example of static data members and member functions without using constructors

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

    Thanks a lot 💙

  • @vijaysinghchauhan7079
    @vijaysinghchauhan7079 4 роки тому +6

    I found no particular reason for using the integer variable x in the static data member program.
    Anyways Thank You.

  • @gauravdeshmukh3674
    @gauravdeshmukh3674 4 роки тому +1

    thanks for this playlist

  • @RaiMuhammadArslan786
    @RaiMuhammadArslan786 5 років тому +2

    Thanks!!!

  • @jamesnash9675
    @jamesnash9675 2 роки тому

    you are the best..........masum

  • @malikasingal6255
    @malikasingal6255 4 роки тому +1

    I watch this video 2 times , now I understand very well, all my doubts have cleared, Thank you so much

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

    you are the best....masum

  • @satyajeetjagtap7628
    @satyajeetjagtap7628 2 роки тому

    you are just awesome bro keep it up

  • @heartsonny
    @heartsonny 2 роки тому

    great explanation thanks

  • @electrotsmishar
    @electrotsmishar 5 років тому +1

    Nice explanation

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

    this video clarified almost all my doubts and was really helpful. so thank you .

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому +1

      Most welcome kalash 😊 I'm very happy to hear this from you. I would request you to please share the videos with your friends too. ✌️ That's the biggest help & support for everyone 😁

    • @kalashjain8647
      @kalashjain8647 4 роки тому +1

      @@SimpleSnippets i will surely do . looking forward to more videos from your channel

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      @@kalashjain8647 there are 400+ videos on our channel bro please check it out. You will find many helpful things 😁🤘

  • @akashwagh6733
    @akashwagh6733 5 років тому +1

    ayyy simple snippet bahut achha kaam karta hai re tum

    • @SimpleSnippets
      @SimpleSnippets  5 років тому +1

      Hahaha shukriya dost ❤️ this sounded like that Munna Bhai mbbs scene. Tum bohot mast kaam karta Wala 😆✌️

    • @akashwagh6733
      @akashwagh6733 5 років тому +1

      It's the same 😅✌️

    • @SimpleSnippets
      @SimpleSnippets  5 років тому +1

      @@akashwagh6733 hehe thought so. Also please do share the video with your friends too buddy. That'll be huge help 😁

    • @akashwagh6733
      @akashwagh6733 5 років тому +1

      Definitely ✌️✌️

    • @SimpleSnippets
      @SimpleSnippets  5 років тому

      @@akashwagh6733 thank you brother! Means a lot ❤️

  • @chanvithapraveen1983
    @chanvithapraveen1983 3 роки тому

    1K th like by me...Thanks

  • @christinestephen8194
    @christinestephen8194 2 роки тому

    thankssss a ton

  • @rikzingchopelbhutia7350
    @rikzingchopelbhutia7350 2 роки тому

    Nice man

  • @kunalpandit6169
    @kunalpandit6169 2 роки тому

    Awesome!

  • @sarmadnadeem_
    @sarmadnadeem_ 5 років тому +1

    Thank you :)

  • @gamingcrew4217
    @gamingcrew4217 4 роки тому

    you are superb bro

  • @smitsoni173rdb4
    @smitsoni173rdb4 2 роки тому

    Sir please explain the return statement, return optional in void function or return required in non void function

  • @tarekradwan8661
    @tarekradwan8661 5 років тому +2

    why is static needed to keep a count of the objects although declaring n objects will call the default constructor n times ?

    • @SimpleSnippets
      @SimpleSnippets  5 років тому +4

      Good question. Because static variable will only be created once no matter how many times the constructor will be called. Hence static variables are class level an not object level. Thus they can be used very well to keep a track of no of objects by simply incrementing the counter variable value in the constructor. ✌️

  • @mahesh-jg3zx
    @mahesh-jg3zx 5 років тому

    Sir what is the use of scope resolution

  • @meneshhdhakate608
    @meneshhdhakate608 4 роки тому +1

    Plz slow your speed , else your explanation wonderful

  • @ProjectsWithGuidence
    @ProjectsWithGuidence 3 роки тому +1

    Good explanation 👏 👍

  • @shubhamtiwari7704
    @shubhamtiwari7704 3 місяці тому

    Hi can anyone explain me why the below is valid ?
    Class Xyz{
    static XYZ instance;
    };
    i couldn't find any proper explaination till now

  • @ajayraj4911
    @ajayraj4911 5 років тому +1

    awsm

    • @SimpleSnippets
      @SimpleSnippets  5 років тому

      Thanks bro. Please share the video with you friends 😇

  • @kothagorlalokesh7591
    @kothagorlalokesh7591 4 роки тому +1

    Bro.ur explaination was extraordinary. but explain some slowly bro. We can't getting u🙏🙏

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      Thank you so much for the compliments bro, and yes I will reduce my speed in future videos. 😇

  • @aarjavbaxi2299
    @aarjavbaxi2299 3 роки тому

    Is there any need of declaring the int x in the program..? Because I did not find a reason to declare it...can you pls explain?

  • @nalamanunay2163
    @nalamanunay2163 3 роки тому

    in last example count was declared as private but it intialized from out side class it was showing error for me

  • @nidhinhari8397
    @nidhinhari8397 5 років тому +1

    What will happen if we initialize(3:24) "int myclass::count;"

    • @navaneethsuresh2049
      @navaneethsuresh2049 3 роки тому

      Since we don't give a value, it initializes a value of 0 by default.

  • @ashutoshdangi6833
    @ashutoshdangi6833 5 років тому +1

    Well explained 👍

    • @SimpleSnippets
      @SimpleSnippets  5 років тому

      Thank you so much Ashutosh, really glad to hear this from you. Please do subscribe to this channel & share the content with your friends too. That will be the biggest help & support 😇

  • @babbubaliga2736
    @babbubaliga2736 6 років тому +6

    Why did u stop uploading man?

    • @SimpleSnippets
      @SimpleSnippets  6 років тому +4

      Hey hi, sorry for the delay buddy was busy with other work. will upload the next tutorial mostly by tomorrow or day after tomorrow. ✌

    • @zakimohas
      @zakimohas 6 років тому +3

      Thanka bro keep going

    • @SimpleSnippets
      @SimpleSnippets  6 років тому +3

      Thank you so much bro. Happy to hear your feedback. Do share the videos with your friends and contacts too. That'll be the best help and support 😇

  • @darshanrs491
    @darshanrs491 4 роки тому +1

    Can u tell y we need "using namespace std"

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      Good question, here is a link to your answer - www.learncpp.com/cpp-tutorial/naming-conflicts-and-the-std-namespace/

    • @sauravsajeev1915
      @sauravsajeev1915 4 роки тому +1

      Because you need to specify a standard io stream to start inputting and outputting

  • @aravindhanrppeftaiqvbc1325
    @aravindhanrppeftaiqvbc1325 5 років тому +1

    Do u do java tutorials also sir??

    • @SimpleSnippets
      @SimpleSnippets  5 років тому

      Yes buddy check on my channel. But it's on core Java for now

  • @Skkskk702
    @Skkskk702 4 роки тому

    super explaination!!

  • @rishabh6051
    @rishabh6051 4 роки тому

    this video really helped

  • @AnkushKumar-mk8ns
    @AnkushKumar-mk8ns 3 роки тому

    Nicely explained

  • @dinesh.p8642
    @dinesh.p8642 4 роки тому +1

    Tanmay, bro,,,if would be more helpful if u go with some slow pace....ur clarity is also awesome....really helpful.
    Love you..

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      Hey Dinesh, sorry for my speed bro. Sometimes I just lose track of my speed and go with the flow 😅
      I will take better care of this in future for sure 😊

  • @sathwikkolli4565
    @sathwikkolli4565 3 роки тому +1

    It would be very good if you could slow down the pace😅

    • @SimpleSnippets
      @SimpleSnippets  3 роки тому

      I will keep that in mind in future video 😊

  • @backeyam5269
    @backeyam5269 2 роки тому

    Main cls therila

  • @mayanksingh7501
    @mayanksingh7501 4 роки тому +1

    can you just press the keys less forcefully. It sounds like your keys are crying man.

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      Lmao 😂 😂 actually the microphone is on the desk as well so that elevates the sound. But yeah in general I press them hard 😂 there's a weird satisfaction I guess by nerds! 😛

  • @kaushaltiwari1286
    @kaushaltiwari1286 4 роки тому +1

    learning c++ from professors???? idhar aoo sab samjhega

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому +1

      Hahahah Thanks Kaushal, share this playlist with your friends too 😇

    • @kaushaltiwari1286
      @kaushaltiwari1286 4 роки тому

      @@SimpleSnippets hiii tanmay glad you replied can you explain file handling a bit more please

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

    Itta fast

  • @ishuyadav4878
    @ishuyadav4878 4 місяці тому

    Bhai Hindi 😢