Classes & Objects | C++ | Tutorial 27

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

КОМЕНТАРІ • 33

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

    prolly the best explained example of this ever. thanks man!

  • @justchris846
    @justchris846 3 роки тому +5

    I now finally understand the relationship between a class and its objects. TY mike dane!!!

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

    I have read my text book, and watched numerous videos, but still have not been able to comprehend this. This video made it finally click! Thank you!

  • @SkylerMet
    @SkylerMet 3 роки тому +2

    This is SUCH a good explaination, I can not believe how easily you framed this, thank you!

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

    Thank you so much! I was having problems with this and practically ripping my hair out. you explained this in a way that was simple and easy to understand. Good job!

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

    Out of everything I've learned so far in C++ I was struggling to get my head around classes + objects tysm man You made me feel like a fool with the terminology.

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

    Well explained! Thank you.

  • @jasmin-px8yl
    @jasmin-px8yl 6 років тому +6

    This video was so help full thank you

  • @nukee2283
    @nukee2283 4 роки тому +3

    Broo.. Like I just don't understand how your that good at explaining stuff :0 Your not missing anything :)

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

      @@mohamadalhalabi397 :(

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

    Holy $#!7 man. Something that I've struggled with each time I tried to learn programming finally clicked for me when you walked through how a class is basically just a way to create a new data type that can't be represented by a single, pre-existing data type.

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

    Better explanation than my university lecture!

  • @ss.a3022
    @ss.a3022 5 років тому +2

    Thank you so much ! Very helpful video.

  • @chiao-meiliu970
    @chiao-meiliu970 2 роки тому

    Thanks for this great tutorial!
    It really helps me a lot in doing my c++ homework.

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

    Thanks....

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

    Man I don't know how to thank you, you explained it🔥

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

    Your tutorials are great! Thank you for this initiative! You should teach advanced courses on C++ as well (exploring object-oriented data structures). The internet is full of material of bad quality that only serves the purpose of confusing learners.

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

    Good to meet your work.

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

    Hi thanks for your help with the full course in C++, Im about to start object oriented progrmmaing now

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

    Great explanation! I came here bc my university textbook couldn't really explain the concept well.

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

    awesome man

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

    You’re the best!

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

    Please I would be glad if you could do a video on OPP where the header file and the implementation file are separate from the main.cpp

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

    Thankssssss

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

    Hey Mike, great tutorials. I don't know if you read comments, but just I can't find a solution to this: I need to make a function that when called, will create an instance of a class. However, each instance should be automatically named (I mean to handle lots of them like in this video: book 1, book 2, book 700...). I could make an integer and call it index, and then have a constructor add 1 to it every time an instance is created so when it is created it should be called book and then the current integer number, but the syntax won't let me do it.
    Any ideas? Thank you!

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

    I know there's a way where the user can input the name of the book instead of hardcoding it into the variable, but I don't know how to do that with classes.

    • @MrShadow2x
      @MrShadow2x 4 роки тому +3

      Maybe I can help. I managed to figure this out through some experimenting after I saw your question. Basically, once you have created your class and want the user to fill in one of the attributes for you, try something similar to this:
      Book userBook; // Created a "Book" class object called "userBook"
      cout

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

    I didn't understand why we use the word public in class what's it's job?

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

    *Tolkien :)

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

    What's the point in "public" in tutorial no. 27, i think you forgot to mention any information about that word "public", just what the hell it is?????

    • @joaovitor-nn1zy
      @joaovitor-nn1zy 4 роки тому

      When you set that as public, it means that the class can be used in any part of the program. Inside every block of code, it will be recognized if you call it.

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

      ​@@joaovitor-nn1zy then what about private and protected? where can/cannot they be used?

  • @al-han3804
    @al-han3804 3 роки тому

    better to struct