C++ Classes part 1 - Introduction to C++ class | Modern Cpp Series Ep. 37

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ม.ค. 2025

ความคิดเห็น • 50

  • @jonallen7782
    @jonallen7782 หลายเดือนก่อน +2

    Wow! Now this is where I will be spending my time learning. Thank you, Mike!

    • @MikeShah
      @MikeShah  หลายเดือนก่อน

      Enjoy!

  • @刘梓涵-x6o
    @刘梓涵-x6o หลายเดือนก่อน +1

    I took C++ on other courses, and they would only tell me how to do it but not why I did it, and every step of the way in your course would tell me why you did it, so I could clearly understand that this is one of the best C++ courses I've ever seen

    • @MikeShah
      @MikeShah  หลายเดือนก่อน

      @@刘梓涵-x6o cheers, thank you for the kind words!

  • @artiagrawal4483
    @artiagrawal4483 8 หลายเดือนก่อน +8

    Best C++ playlist till now. You are a great teacher ❤ . Respect 💯

    • @MikeShah
      @MikeShah  8 หลายเดือนก่อน

      Cheers!

  • @guilherme5094
    @guilherme5094 หลายเดือนก่อน +1

    As always thanks Mike!

    • @MikeShah
      @MikeShah  หลายเดือนก่อน +1

      You are most welcome!

  • @oliver1231033
    @oliver1231033 2 ปีที่แล้ว +8

    You're the best c++ teacher I've ever seen! binge watching your vids

    • @MikeShah
      @MikeShah  2 ปีที่แล้ว

      Cheers, thank you for the kind words!

  • @dominicgoodwin1147
    @dominicgoodwin1147 ปีที่แล้ว +3

    Mike, your courses are so good. After watching your videos I feel really understand each topic because you always build from first principles. Thank you! Thank you! Thank you!

    • @MikeShah
      @MikeShah  ปีที่แล้ว

      Cheers, thank you for the kind words!

  • @othmanilouay7009
    @othmanilouay7009 2 ปีที่แล้ว +6

    Well explained. Following this series, I learned not to fear errors and how to deal with them practically. Thank you so much!

    • @MikeShah
      @MikeShah  2 ปีที่แล้ว +1

      Thank you for the kind words!

  • @NareshK-w5e
    @NareshK-w5e 3 หลายเดือนก่อน +1

    Hey Mike, really appreciate the way you teach. The order of the videos (to learn in depth) without confusion is well shown. Do you have a git repo of these files. I was following your videos and i made a mistake of not saving them. Instead i have over written. Now, i feel like this could be a great way to refer to if there is a doubt looking back or like a mini cpp-reference documentation without too much complexity.

    • @MikeShah
      @MikeShah  3 หลายเดือนก่อน

      Cheers, thanks for the kind words! I don't have the source publicly posted, but I have in mind a project to perhaps put the source code in the future. One reason I don't post the source is so that folks have to type it out -- but indeed there might be some value to posting the snippets in written form, thus I'm actively thinking about this.

  • @ProgrammingAndCS-ko1ww
    @ProgrammingAndCS-ko1ww ปีที่แล้ว +1

    thank for lesson mike, you make c++ more easy to follow and intuitive subscribe! ,i see how you sophisticate with vim make me want to purchase you course haha

    • @MikeShah
      @MikeShah  ปีที่แล้ว +1

      Cheers -- thank you for the kind words 🙂Once you turn to VIM -- it's hard to use anything else 😁

  • @iainattwater1747
    @iainattwater1747 2 ปีที่แล้ว +2

    Thank you, these videos are excellent! Thank you also for taking the time to explain, I especially like the modern C++ teaching you're giving.

    • @MikeShah
      @MikeShah  2 ปีที่แล้ว

      Cheers, you are most welcome!

  • @alexandrosachilleas7162
    @alexandrosachilleas7162 3 หลายเดือนก่อน +1

    Hi. Im taking a c++ course now. What I find hard is the syntax when you call stuff inside the implementation functions in the .cpp file. It's soo confusing and I come from a C background. I understand thr logic, but sometimes the c++ syntax doesn't make sense.I have not seen a good tutorial video on that on the internet. Is it possible to do something? Thanks

    • @MikeShah
      @MikeShah  3 หลายเดือนก่อน

      Are you asking about compilation (th-cam.com/video/ksJ9bdSX5Yo/w-d-xo.html)? or perhaps .cpp and .hpp files? (th-cam.com/video/RMnpwICsgYo/w-d-xo.html) . I might have something to help if you search my library courses.mshah.io/pages/TH-camLibrary

  • @AlexanderWhillas
    @AlexanderWhillas 2 ปีที่แล้ว +2

    humm, at 14:30 the object is no longer deleted yet the destructor is called?

    • @MikeShah
      @MikeShah  2 ปีที่แล้ว +1

      Object is stack allocated. This means it is destroyed when we return from the main function, thus the destructor is called.

    • @AlexanderWhillas
      @AlexanderWhillas 2 ปีที่แล้ว +3

      @@MikeShah Ah of course! thanks for that.

  • @ranaobeidat-vm1fy
    @ranaobeidat-vm1fy 5 หลายเดือนก่อน +1

    THANK YOU

    • @MikeShah
      @MikeShah  5 หลายเดือนก่อน

      You are most welcome!

  • @dhanushs1802
    @dhanushs1802 2 ปีที่แล้ว +3

    Very neatly explained as always. Thank You.

    • @MikeShah
      @MikeShah  2 ปีที่แล้ว

      Thank you Dhanush!

  • @Sobioytccc
    @Sobioytccc ปีที่แล้ว +1

    Good teaching 😊

  • @Andrei-cv1kn
    @Andrei-cv1kn 2 ปีที่แล้ว +2

    Thanks a lot!

  • @Shubhodeep-xv8mh
    @Shubhodeep-xv8mh 8 หลายเดือนก่อน +1

    Hello sir, I want to learn only the OOP part for now for my interviews. Can you please provide me the video numbers/titles as to where I should start and end for OOP specifically?

    • @MikeShah
      @MikeShah  8 หลายเดือนก่อน

      Welcome! Pretty much any video starting with 'C++ Classes' or 'struct' in the title are what you are looking for. Check out the playlist here: th-cam.com/play/PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L.html

    • @Shubhodeep-xv8mh
      @Shubhodeep-xv8mh 7 หลายเดือนก่อน +1

      @@MikeShah yeah I am following this very playlist. Is the complete OOP in C++ covered? Atleast what I need to know for fresher interviews?

    • @MikeShah
      @MikeShah  7 หลายเดือนก่อน

      @@Shubhodeep-xv8mh I think for entry level engineering jobs in C++, there's enough OOP covered here -- pay particular attention to virtual tables, inheritance, videos. :)

  • @JoseLuisAlcarazBetoret
    @JoseLuisAlcarazBetoret 2 ปีที่แล้ว +1

    Excellent tuto.
    Thanks for share.

    • @MikeShah
      @MikeShah  2 ปีที่แล้ว

      Thank you for the kind words!

  • @ZiclopDevices
    @ZiclopDevices 2 ปีที่แล้ว +2

    Excellent!
    Thanks for sharing.

    • @MikeShah
      @MikeShah  2 ปีที่แล้ว +1

      Cheers!

  • @vidakgrujic827
    @vidakgrujic827 ปีที่แล้ว +1

    Hello. 😊 I want to say that your course is great and I have one question. Is there a way to avoid writing "Student::" before every method(action) in "Student.cpp"? Thank you so much for this course. 😁

    • @MikeShah
      @MikeShah  ปีที่แล้ว

      Need to use 'Student::' for scope resolution -- so it always needs to be there. Can probably use a MACRO or something to generate them at compile-time, but that might be a bit ugly and I wouldn't recommend it.

  • @mirzakadic9174
    @mirzakadic9174 ปีที่แล้ว +1

    19:26 #pragma once ? :) (p.s. awesome video)

    • @MikeShah
      @MikeShah  ปีที่แล้ว +1

      Cheers! Yes, #pragma once is supported by most compilers now I believe

  • @Принуждениекмиру-ь2ц
    @Принуждениекмиру-ь2ц 8 หลายเดือนก่อน

    C++23 was created to use it, not just to mention it. forget about C++17, it's old. you should teach the newest C++

    • @MikeShah
      @MikeShah  8 หลายเดือนก่อน +1

      C++23 will start appearing later on in the series. Keep in mind this video was posted 2 years ago -- most compilers are most compliant as of this writing with C++ 20 features (though support for modules may be missing other than on MSVC as of this writing). Generally speaking, many of the features I show are fine to use with C++11, and I explicitly set a higher version if needed to show something else -- keep in mind many folks in embedded world do not have available even C++14, as compilers have to be verified.

  • @Принуждениекмиру-ь2ц
    @Принуждениекмиру-ь2ц 8 หลายเดือนก่อน

    bad style of coding. classes are private by default just for class fields, not just for fun, Mr PhD teacher.

    • @MikeShah
      @MikeShah  8 หลายเดือนก่อน

      Are you referring to around 5:29? What is bad style of coding exactly? Classes indeed are private by default for all data members nad member functions.

    • @Himshu143
      @Himshu143 6 หลายเดือนก่อน

      ok