C++ OOP (2025) - What are constructors and class methods? How to use them?

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

КОМЕНТАРІ • 346

  • @CodeBeauty
    @CodeBeauty  4 роки тому +40

    📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
    C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
    Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
    🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
    Experience the power of practical learning, gain career-ready skills, and start building real applications!
    This is a step-by-step course designed to take you from beginner to expert in no time!
    💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
    Use it quickly, because it will be available for a limited time.
    #include
    #include
    using namespace std;
    class UA-camChannel {
    public:
    string Name;
    string OwnerName;
    int SubscribersCount;
    list PublishedVideoTitles;
    };
    int main()
    {
    UA-camChannel ytChannel;
    ytChannel.Name = "CodeBeauty";
    ytChannel.OwnerName = "Saldina";
    ytChannel.SubscribersCount = 1800;
    ytChannel.PublishedVideoTitles = {"C++ for beginners Video 1", "HTML & CSS Video 1", "C++ OOP Video 1"};
    cout

    • @Павелик-з4е
      @Павелик-з4е 4 роки тому

      Welcome me 😍 friend.

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

      @@Павелик-з4е Hahaha, welcome! 🤗

    • @Павелик-з4е
      @Павелик-з4е 4 роки тому

      @@CodeBeauty 🇰🇿

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

      Wow, I'm glad to see that people are watching me on the other side of the world! Қош келдіңіз! ☺️

    • @Павелик-з4е
      @Павелик-з4е 4 роки тому

      @@CodeBeauty менің UA-cam каналыма үлкен рахмет, мен сізді көргеніме қуаныштымын.🙂

  • @TimelyEnlightenment
    @TimelyEnlightenment Рік тому +48

    I've read plenty of c++ ebooks and they are very comprehensible, but your way of explaining class and objects in this video is way more comprehensive. Starting with simple way of creating class and then how you can create multiple classes without having to repeat the same codes. This is better than how I learn it in college. AMAZING 👏

  • @kathrinlahner5620
    @kathrinlahner5620 3 роки тому +75

    Usually, I don't comment...but after three years of programming and finally understanding constructors I want to say THANK YOU🌸- and I mean it!! Your explanations are comprehensible and finally there's a way for me to understand what I'm supposed to do with all that code. Coffee bought☕

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

      Thank you so much 🥰💞

  • @joyceosas7793
    @joyceosas7793 Рік тому +21

    Three years already and your videos are still very useful. God bless you, Saldina

  • @mudmaster9965
    @mudmaster9965 3 роки тому +15

    I am really new with programming. The way you teach by comparing old methods with new one is remarkable !
    It make me understand about why it happened and why it matter
    Thank you

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

    i used to dread C++ until i started following this channel. Teaching is a s skill. Thank you so much...

  • @dev.antunes
    @dev.antunes 4 роки тому +7

    I understood 100%. Now I see the meaning of the constructors. *Thank you so much, Saldina.*

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

      Great! I'm happy to help 🤗

  • @Hermitinarowboat
    @Hermitinarowboat 2 місяці тому +1

    Thanks so much Saldina, my c++ lecturer for oop is terrible and explains nothing. I have learned more from this series than 2 months with my lecturer thank you so much!!!

  • @melody.-.1839
    @melody.-.1839 11 місяців тому +1

    Thank you so much for explaining this, my professor in college blew through this and it's immensely helpful to see your examples! Going to watch this whole series of videos

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

    I just want to say thanks and i just want to let you know that you are making huge difference in many people. love you from ethiopia

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

    I like that you adopt this "show me the problem with something" before you introduce the new concept that was meant to be the solution.

  • @ASandro.AllMat
    @ASandro.AllMat 10 місяців тому

    Finally, after some weeks in classroom I am able to get the concepts of OOP. Good work, Salina. Keep going on with more and more videos, sharinh knowledge.

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

    I really wanna thank you because i am really struggling with C++ and your instructions are so clear and your verbalism, the way you talk is also great and understandable. All these coding videos there's always some guy who is indian and speaking with a terrible accent so i can't really understand from them sometimes (english is my second language) you saved me really! subscribed

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

    I have to admit that your video is absolutely clear. Thats why I choose to watch your video despite language difference

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

    everyone who do such works,give time ,and bring such content is worthy to be appreciated,plz bring data structures too.

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

    Thanks!

  • @abdullahlahore7416
    @abdullahlahore7416 10 місяців тому

    you've made programming looks so easy. More power to you girl.

  • @roberte.o.speedwagon114
    @roberte.o.speedwagon114 3 роки тому

    Aaaaa taj naglasak mogu prepoznati u snu. Inace odlicni snimci i nadam se da ces nastaviti sa njima od mene samo reci hvale i podrske

  • @rudradev3873
    @rudradev3873 2 роки тому +6

    Thank you so much for these gems. Helps me to become exponentially better in programming, maybe I'll top my branch this semester.

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

      Wow, good luck, I'm so glad to hear that top level students are learning from my channel 😃😃

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

    Jeremie, from Trinidad. As a student doing C++, your vids are a saving grace for me. Greetings and all the best!
    Favorite songs as of current: Disturbed - Hell and Sabaton - Dreadnought.

  • @RainMoneyProductions
    @RainMoneyProductions 4 місяці тому +2

    currently taking data structures. thank you for this your work is incredible

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

    Just stumbled on your site Saldina. Great to see so many C++ videos! Thanks for producing these. :) Looking forward to checking more of these!

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

      C++ has a special place in my heart, so I decided to start my channel with C++ tutorials ☺️

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

      @@CodeBeauty lol I can tell you're passionate about it. I have been reluctant to dive in since I'm dreading learning about pointers but hopefully you will cover that section soon :)

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

    I dont usually comment on videos but this really helped. Im very new to programming and struggling alot and this video really helped me understand constructors. THANK YOU!

  • @ΔανιήλΤριανταφύλλης

    Thank you for this video, I think you understand where I am having difficulties better than any other coding channel so I always look for your videos first now haha

  • @mayureshharihar2557
    @mayureshharihar2557 2 роки тому +2

    Feeling very lucky after found this channel 😇

  • @yuanyuan23191212
    @yuanyuan23191212 3 роки тому +15

    Thanks Saldina. It would be great if you could also cover destructors, virtual destructors, delete, and related dynamic memory parts when you have time in future.😀

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

    I do wish the volume was a little louder on a cpl of videos, each time a commercial comes on its so loud lol! Totally worth it tho, these videos are rad! Imho

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

    Thanks a lot! I love your explanation and the way you've used relatable class's name and objects ☺️

  • @stephenjames5745
    @stephenjames5745 4 роки тому +5

    This series is terrific! Thank you.

  • @MatthewJohnson-yc7nx
    @MatthewJohnson-yc7nx 3 роки тому +1

    I appreciate your hardwork to make these videos at 3am.
    I have had more success with your videos gaining practice and understanding foreign concepts.

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

    Thank you very much your videos are very helpful! I stopped go to my classes in uni and instead I'm watching your videos and learning much more!

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

    Thanks!

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

      Thank you so much! I appreciate the practical and real world approach you illustrate in your classes! As a companion to my txt books you have made clear so many of the concepts i was unclear on & answered all the questions that before your videos perplexed me so THANK YOU SO MUCH!!!!

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

      Thank you 💖💖

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

    I love you so much really thankkk you!!!!!!!!!!!!!!!!! finally i found someone who teaches really REALLY WELLLL

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

    THANK U MAM 🙇‍♀️
    LOVE FROM INDIA❤️

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

    best explanation I found so far, thanks!

  • @raykos4257
    @raykos4257 2 роки тому +2

    Great tutorial! So clear and well paced!!!

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

    There is hundreds of favourits songs... but you inspired me to one special: Passengers - Miss Sarajevo (Concert Version). Thank you for your time! It's a pleasure to see yours videos. Very clear. Very usefull. Very beuty code to code beauty. Regards from Argentina!

  • @sushimuppet4
    @sushimuppet4 6 місяців тому

    I love ur videos!! It'll really help me with my finals🌸

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

    Thank you! Much appreciated. This series are great!

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

    Thank you so much. I had so much trouble understanding this in class

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

    Nice explanation of the concept with example, thanks.

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

    Fav songs, wind of change - scorpions, creep - radiohead, every breath you take - the police, drops of jupiter - train.

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

    One of my favorite songs is Baker Street by Gerry Rafferty. A side note on terminology, I have heard the different arguments in an overloaded function called the function's signature.

  • @shdyo
    @shdyo 11 місяців тому +2

    Great explanation, very clear! Only complaint is no dark mode 9/10

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

      Complaint adopted! I started using dark mode in my later videos 😃👋

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

      @@CodeBeauty Thank you! This is a great resource for learning!

  • @bijoykrishnaChakrabarty
    @bijoykrishnaChakrabarty Місяць тому

    Thanks for the informative video. Watching from India. 🤩🤩

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

    that is exactly what I was looking for, very helpful. thank you so much

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

    You are indeed the software developer keep it up!!!!

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

    Great, comprehensible video! Good job👍

  • @user-zj9pq5xc7x
    @user-zj9pq5xc7x Рік тому +1

    excellently explained. thank you!!

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

    What can I say other than my jaws only dropped in amazement at how you easily delivered this.

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

    Hi! Amazing tutorials,i watched only two ,for the moment, and i really like its.

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

    Came here to learn programming and obsessed with lorelei last couple days haaha:) and learned constructors as well so thank u

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

    Thank you so much. I finally understand constructors

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

    Little late but my favorite song is Beast of Burden by The Rolling Stones. Thanks for your videos!

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

    U just got a sub great job explaining ☺️

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

    Thank you for the awesome videos and contents. Since I learn a lot through commenting code lines; I am pleading that you include the comments for learners like me. Thank you for the great work!!!!!!

  • @Cesar33-pl
    @Cesar33-pl 3 роки тому

    You are an excellent teacher, thank you very much!

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

    Your videos are really helpful! Thanks a lot!!

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

    my TA recommended you THank you Belen and thank you it was really helpful

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

    Te felicito por tu Canal. Explicas muy bien. Voy a hacer todo el curso. Espero aprender todo. GRACIAS.

  • @МаксимМихайлов-п5е

    Very clear && easy to understand, thank you!

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

    What a great video!
    Your explanation is very good

  • @Farjanamoon-no7ok
    @Farjanamoon-no7ok Рік тому +1

    you are really a great tutor

  • @DavidMalunga-t6w
    @DavidMalunga-t6w 4 місяці тому

    i love you code beauty you are such a genius

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

    Clear and simple. Thanks🌹

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

    Flipsyde - one more trip
    The guitar solo 😍😍

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

    miss saldina.. you made my day .. thank u so much

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

    So far, so good 🙂
    ...
    Song: Where I am - Freetown Collective.

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

    Thank you, great videos! My two fav songs will be Fleetwood Mac - Dreams and ofc The Hooters - Johnny B!

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

    Rammtein ❤ thank you so much for video

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

    Hi, why are you placing: system("pause>0"); at the end of the code, what does it do?

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

      ua-cam.com/video/VcLMLEw4sn8/v-deo.html 🤗🤗

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

    @CodeBeauty you teaching methodology is good I like you, your voice, and teaching methodology

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

      @CodeBeauty : my one comment is hide ???? Why and where is your reply 😢😢😢😢😢😢😢😢😢😢😢😢😢 😂😂😂😂💕💕💕💕💕💖💖💖💖

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

    Clear explanation, pls do more videos in c++

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

    Really clear video - thank you

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

    Appreciate your work. easy to understand

  • @261-monishg2
    @261-monishg2 2 роки тому

    after lot of vedios and finally found the perfect one!!!!!

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

    really a great video well structured. you have a great future but don't believe the hype

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

    Such a great video. It was a great practice.

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

    you explained why very well. Thanks.

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

    Thank you my new mam for teaching c++ in very simple and easy way.
    I am from India .so, Language becomes more barrier for me but in your case I didn't feel like this
    due to your easy way of teaching and making the things related us by giving perfect example
    once again Thank you so must...

  • @PrasadPatil-eg1lo
    @PrasadPatil-eg1lo 3 роки тому +1

    Woah its great thnx saldina✌🏻

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

    Thanks a lot! Your example choose very good.

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

    Brilliant, Excellent, thanks so so muchh !!!!

  • @limelemonada
    @limelemonada 9 місяців тому

    A literal lifesaver

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

    Wow great keep it up
    I really love your videos

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

    I appreciate the way of teaching and great hardwork to prepare such a perfect videos. Excellent work by CodeBeauty!

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

    Thanks, explained perfectly

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

    Very good video 📸 deserve likes and subscription.

  • @krishna_3406
    @krishna_3406 10 місяців тому

    you should deserve more subscribers ☺

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

    Beautiful! My favorite song is Time from Pink Floyd! Great Video!

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

    Thank you Saldina. I've many things learned from your videos.
    P.s. Fishmans - Long Season
    P.s.s. You are so beautiful

  • @kiwi-sw9kn
    @kiwi-sw9kn 2 роки тому

    Does she have a video showcaseing her Setup so I can have thoose shortcuts aswell in my compiler ?

  • @JC-px9mk
    @JC-px9mk 3 роки тому

    Heyyyyy, does anyone know how to comment multiple lines out at once? like at 7:13 ? and or how to edit multiple things in multiple lines at the same time if you know what I mean? Thanks a lot and have a nice day❤️🥰

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

    Thank you for your great job

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

    Excellent explanation

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

    It would be nice to show how we can use a class from different translation units. How to write header file and cpp file in this case.

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

    Very nice video , but if I may ask, what is the difference between structs and classes? From what I see , they both seem the same. When I create a struct variable, to me it seems the same as a class object. I don't get the difference.

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

    My favorite song is Circe's Spell from Kalidia band. Kisses from Brazil, Saldina...

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

      Muitos beijos para o Brasil 🥰❤️

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

    Thank you so much! Please make more videos like this :)))

  • @SophoniaLetsoalo-w3p
    @SophoniaLetsoalo-w3p 6 місяців тому +1

    Magnificent 🎉