C++ Object Oriented Programming Crash Course - Introduction + Full Tutorial

Поділитися
Вставка
  • Опубліковано 30 січ 2025

КОМЕНТАРІ • 40

  • @codebreakthrough
    @codebreakthrough  Рік тому +9

    What other C++ topics would you like to see?
    Be notified of new C/C++ course: calcur.tech/c-cpp-newsletter
    Here's a video on classes vs structs: ua-cam.com/video/TeHlfLf9v1k/v-deo.html
    Timestamps:
    00:00 - Classes and Objects
    05:18 - Pillars of OOP
    07:01 - Encapsulation
    08:07 - Setters (Mutators)
    09:51 - Getters (Accessors)
    11:11 - Constructors
    14:12 - Inheritance
    20:46 - Protected
    22:01 - Override
    24:12 - Polymorphism
    27:08 - Static methods

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

      file handling and also c++ in windows application

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

      Awesome! Thank you very much!

  • @flywittzbeats4008
    @flywittzbeats4008 Рік тому +45

    I love how you get into the single most confusing part of oop right in the very beginning. Seriously are such an amazing teacher thank you so much Caleb❤

  • @vojtechblazek4712
    @vojtechblazek4712 Рік тому +4

    Thanks for this! I was striggling with getting the hand of object oriented programming, since it felt so different to what I was doing before. Now I feel like I have a general idea about how to approach the topic and learn more.

  • @TinySpaceCowboy
    @TinySpaceCowboy 11 місяців тому +1

    The first 3 minutes of this video were SO helpful. The simple Person class you created helped me understand how to link the code in the main body to the code in the class with objects. Thank you!

  • @flirtie
    @flirtie Рік тому +9

    Best video to revuse old knowledge or to start thinking and gettung into object oriented. Great work dudee🤜🤜

    • @Atomic-Potato
      @Atomic-Potato Рік тому +1

      indeed, i used it to transition from c# to c++ as well. I did learn pointers in c++ at my university but never oop in c++

  • @stefano4993
    @stefano4993 4 місяці тому +1

    Coming from C# this is in a good speed. Lots of information but well explained. Thanks!

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

    Incredible teaching here, Caleb.

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

    Hey Caleb!! Thanks soo much for your job, you are an amazing teacher!! I would like to ask you if you can explain the differences between Association, Composition and Aggregation in C++. I want to understand when I have to use which ones in what context and also understand clearly the concepts !.

  • @ARANDOMOPENAIUSER
    @ARANDOMOPENAIUSER Рік тому +1

    8:00
    14:15
    17:08
    22:00 // Left off on learning about "Overrides"

    • @8124K-u4x
      @8124K-u4x 3 місяці тому +3

      come back bro you late

    • @simo.nassiri
      @simo.nassiri 16 днів тому

      sleeping on a 30min vid for a year is crazy

  • @bunzguy6448
    @bunzguy6448 Рік тому +1

    i started the video knowing nothing about OOP, ended it knowing how to do exactly what i want to use it for.

  • @jonathanj.pereira299
    @jonathanj.pereira299 Місяць тому

    This video simply explained everything I needed to know for my quiz

  • @Necropheliac
    @Necropheliac Місяць тому +1

    Can your classes inherit multiple classes? Or maybe is there a mixin syntax for creating classes compositionally?
    I want to serialize my classes into data, is there a way of reflecting on an object of a class and serializing based on the data members?

  • @QuimChaos
    @QuimChaos Рік тому +1

    As a default constructor can we use Person(){}; or is it bad form?

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

    Hi Caleb, great video! What is the color theme you are using?

  • @ashen9349
    @ashen9349 5 місяців тому

    what's the theme that is used in your vs code??

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

    thank you so much brother your videos are awesome.

  • @MujahidTeha
    @MujahidTeha 8 місяців тому

    it asked me some criteria to download pls 🙏 help me

  • @MujahidTeha
    @MujahidTeha 8 місяців тому

    How can I download your video

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

    Thank you
    It will be interesting if you learn c++ on Arduino

  • @Almocar
    @Almocar Рік тому +5

    why dont you use "using namespace std;" at the top of the code? so you dont keep writting "std::" ?

    • @oxioxp
      @oxioxp Рік тому +1

      using namespace std; is considered a bad practice, avoid it

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

      Why? makes your code easy to read @@oxioxp

    • @thatsnotmlg8512
      @thatsnotmlg8512 10 місяців тому +1

      ​@@oxioxp I still and will never understand why this reduces code readability it does the exact opposite and will always do

    • @UyenVyNguyen-r5m
      @UyenVyNguyen-r5m 9 місяців тому +1

      From my understanding, there are different libraries in Cpp and when you work on a big project with "using namespace std", you can mistake it into another library which can bug your code/ mess up files (or something 😅 , hasn't known yet). But yeah, it was okay to use the std namespace in small projects or just practise exercises so it can help you write more efficiently. To sum up, it depends. If anyone has a better understanding of this pls let me know.

    • @joaquingallardo1728
      @joaquingallardo1728 2 місяці тому

      Because it can create name conflicts if you were to define a function that had the same name as a function implemented in std. Std is a big library so you're never sure. The :: operator for selecting a function from a specific namespace allows for better debugging as you know where each function is coming from

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

    best oop ever

  • @anetenehgebre
    @anetenehgebre 5 місяців тому

    Good l wat more

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

    XD ok nice back

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

    and i OOP

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

    🎉❤😮

  • @maryamadnan2219
    @maryamadnan2219 3 місяці тому +6

    Your explanation is really bad, this is not an introduction, this is for someone who already knows oop but wanna get better

    • @stevenrwh
      @stevenrwh 3 місяці тому +9

      I disagree. This content seems to be for someone who already understands functional programming but needs to learn object oriented. If I had to guess, you're not someone who has first mastered a functional language. If you were moving from C to C++, this video would click much better for you.

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

    OOP ew.