OOP Constructors - Types of Constructors You Need to Know (Basics to Mastery)

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2024

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

  • @CodeBeauty
    @CodeBeauty  ปีที่แล้ว +20

    📚 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.

    • @Relaxingmusic-nk7py
      @Relaxingmusic-nk7py ปีที่แล้ว

      The way you explain is awesome ❤❤❤ lots of love for you teacher. I was never expected one day I will find a teacher who will explain awesome way . I don't have words to express my happiness after watching your vedios 🎉🎉🎉🎉

  • @Stisse12
    @Stisse12 7 หลายเดือนก่อน +6

    This is the best tutorial on Constructors I seen so far. Seen 4 videos on the topic, but noone explain why and a good example where to use it.

  • @874D8
    @874D8 7 หลายเดือนก่อน +5

    I love this serie. It is so thorough and no time is wasted.

  • @nv9usb381
    @nv9usb381 ปีที่แล้ว +15

    I have never seen such a good, in-depth explanation before. Programming classes used to make me anxious before I discovered your channel, but now I understand everything and I am looking forward to them. I wish I had found your channel earlier because your explanations are so clear. You are absolutely right when you say that programming isn't hard.

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

      Thank You, it means a lot to receive positive feedback ❤

  • @AbdulRehman-q2h9d
    @AbdulRehman-q2h9d 2 วันที่ผ่านมา

    "Next level! I've been struggling with this topic for days, but this video explained it perfectly. Thank you for creating such a helpful and clear guide!"

  • @salihbarknakkaya8101
    @salihbarknakkaya8101 7 หลายเดือนก่อน +4

    Another day, another video for me, lets have all the enjoy and love coding again! And of course as before, greetings to the best teacher ever for these beautiful videos!

  • @cophnia61
    @cophnia61 ปีที่แล้ว +26

    I already love your lessons about C++ but with this addition I think it just became perfect!

    • @CodeBeauty
      @CodeBeauty  ปีที่แล้ว +4

      Much appreciated, thank You.

  • @deneristargerian6755
    @deneristargerian6755 ปีที่แล้ว +7

    Thanks to your videos I finally understand programming, and I even got internship job. Thank you Saldina, thank you ❤❤

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

      That's so good to hear, keep learning ❤

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

    May Almighty reward you for your humanitarian efforts! Hopefully, a noob like me will get hold of it.

  • @muhammadaon9147
    @muhammadaon9147 ปีที่แล้ว +13

    Finally found someone who is specifically focusing on c++ Love from Pakistan ❤️❤️

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

      Love for Pakistan ❤ 🇵🇰

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

    Your content is the best. All the programming I've learned, I learned it from you. Thanks Saldina

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

    Saldina you are simply perfect❤️

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

      that's so nice of you

  • @milkamilkica1935
    @milkamilkica1935 ปีที่แล้ว +12

    amazing as always! thank you saldina

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

    Thanks for good explanation.

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

      You are very welcome

  • @hindustaniyodha9023
    @hindustaniyodha9023 ปีที่แล้ว +7

    Much much needed video.

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

      much much thank you ❤

  • @phoebewell3653
    @phoebewell3653 ปีที่แล้ว +5

    Finally, you are back. Great video, I was waiting for this!

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

    your explanation of constructor is clear and beautiful

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

      🥰🥰

  • @hristijanp.8500
    @hristijanp.8500 ปีที่แล้ว +1

    Hvala ti puno, jako olesnitelno je kad ima ko da objasni. Top si!

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

      Hvala tebi na komentaru ❤️

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

    I love your lessons. I always understand everything 🚀🚀

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

      Glad you like them!

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

    Loved the way you teach :) thanks @CodeBeauty

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

      Glad it was helpful!

  • @jamalkhan_
    @jamalkhan_ ปีที่แล้ว +9

    What a coincidence , I was taught about this concept just today in the University.

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

      am I master of timing or what? 😉

  • @SasmithG-q5j
    @SasmithG-q5j 7 หลายเดือนก่อน +2

    your vedios are just so amazing and thorough, and you have the perfect small sense of humour 🤭 which makes my mood amazing. thank you saldina. i love you.

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

    Hi Saldina , i'm learning so much from your videos,
    you are the best!
    Thanks

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

      I'm happy to hear that ❤️

  • @davidmorris2848
    @davidmorris2848 ปีที่แล้ว +7

    Thank you for all of your hard work! I am so excited for your course to come out, I've been saving up so I can purchase it on day one. Would you mind telling us if its going to cover anything about c++ builder?

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

      Thank you so much for your support and enthusiasm for my course, it means a lot! For this course we won't cover C++ builder because it is paid software and i wanted to use only the free tools so that it is accessible for everyone and that's why we will use Visual Studio. I promise the skills you'll learn will be useful in different programming languages and environments. Plus, it won't be expensive and since I cannot put in words how much I appreciate you saving up for my course here is link where you can subscribe and get a discount when I publish it: bit.ly/SimplifyingCoding. See you there

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

      @@CodeBeauty Thank you for getting back with me. I like c++ builder but I would prefer to learn Visual Studio, so that is exciting. I already signed up, but I encourage everyone to do the same. 😁

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

    Your instruction is consistently excellent. Thank You.

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

    I'm in and I can't wait for your course! I know it will be amazing!!! 🔥🔥💰

  • @VikramKumar-di6dj
    @VikramKumar-di6dj ปีที่แล้ว +1

    Glad I didn't missed the last part 😄

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

    saldina you are the perfect teacher.

  • @Alo-b6b
    @Alo-b6b 10 วันที่ผ่านมา

    Thank you for introducing the dark mode to your tutorials. I really appreciate, as the default white screen can be quite blinding, especially during longer viewing sessions. It's difficult to watch videos with such a bright background, so the black screen has made a huge difference for me.

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

    wish this video has more views so mire people can understand in depth.

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

      Share it with your friends then. Together, you can learn to code a start a great tech company 🥰

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

    You're great teacher, really adorable explanation, can we get another video about Initialization lists, Delegating Constructors, Copy Constructors, also constructors type...............it never ends 😭😭

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

    Thank you trillions of times! Your explanation was incredibly clear and easy to understand. I really appreciate your help!

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

      You're very welcome! 🥰❤️

  • @bashiraddean-mufarreh
    @bashiraddean-mufarreh ปีที่แล้ว

    I completed a simple project from what I learned during my follow-up to your lessons, and I sent a copy of it to your mail. Please take a look, for help, advice and your opinion. Thank you from Yemen

  • @Lisa-mh1dk
    @Lisa-mh1dk ปีที่แล้ว +1

    thank youuu, u explain things really well!

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

    Thank you, so clear and beautiful as always!

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

    Hey, Saldina could make a C++ videos on Desing Patterns?
    How they Work?
    What is the Purpose of them?
    Why we do we need them?
    How we can implement them into our applications.
    BTW, Great Video, LIKED!

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

    It’s just printing out whatever’s in the uninitialised memory, I was surprised it ran the first time, I thought it would throw out a null reference exception, but it probably worked because of the default constructor

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

      yes, you are absolutely correct, thanks to the default constructor everything works fine.

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

    Great content. My question is which keyboard shortcut have you used @ 25:17 to comment the block of code? Thanks the content is amazing

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

    It's work me alot when i go for interview

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

      Glad to help, my pleasure ❤

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

    Really Good Explaination ❤

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

      Thanks you, it is truly heartwarming to know that me sharing my knowledge and passion for programming helped you. Teaching and helping others is incredibly rewarding, and it gives me a sense of purpose and fulfillment that can't be matched ❤.

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

      @@CodeBeauty yeah you explain very well and best way to deliver every part

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

    I kind of miss programming in C++. I'm a full time developer and we don't use C++ at my company. I have my own home projects in C++ that need working on, I just never feel like it after spending the day working on other people's code, so I go months at a time without working on the projects I'd like to finish. BTW, how's the kitten doing?

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

      I completely understand how you feel! When I used to work as a programmer for other companies, I often found myself too exhausted to work on my personal projects outside of work hours. It can be tough to stay motivated when you've spent all day working on code, but i would strongly encourage you not to give up on your passion for C++. Try dedicating some time, an hour per day or whatever you find comfortable to spare it for something that's making you happy because, in the long run, it's more important than any material gain. As for the Miso, he's currently sleeping in the box next to heavenly cozy pillow, go figure 😊. He is regular attraction on my IG so check it out here instagram.com/truecodebeauty/

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

      @@CodeBeauty Unfortunately I wasn't able to scroll far in your Instagram before it asked me to log in and I'm not really interested in making an account. I'm glad to hear the kitten is doing well though. It's always good to know that pets are happy.

  • @iNeurons
    @iNeurons ปีที่แล้ว +7

    Again learn with brain beauty 😍

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

    I have a question!! when you invoke "void GetUserInfo(User u)" function, you pass by value, right? And you don't have copy constructor. How that can work?

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

      You need copy ctors only if your class has pointers. Otherwise, it can be copied even without a copy constructor 😊

    • @khang-0
      @khang-0 7 หลายเดือนก่อน

      @@CodeBeauty

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

    THANK YOU

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

    Thank you

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

      You're welcome 🥰

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

    @CodeBeauty I have a question. I tried to run the first program without initializing a 'test' varoable and didn't get any error. why is that? at 7:43 in the video. thanks in advance.❤❤❤

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

    THANKS!

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

    hello saldina! thank you for the videos, i have a question please explain to me!
    lets say i made a user info constructor like you did in the video, but instead of entering my own parameter values like name and last name, i want the users themselves to enter their info into the parameters.
    how can i do that?
    please explain to me!!

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

    where can we find your practical course?

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

      The course is out, and you can find it here: www.codebeautyacademy.com

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

    Impressive and certainly very useful but to pass a strict Turing test (it seems) more advancement is required.

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

      In order to create a machine that will pass the Turing test, you first need to have a good understanding of basic programming concepts, and be able to grasp them in depth through practice. Afterwards, it is essential to upgrade your knowledge with an understanding of artificial intelligence, machine learning algorithms, natural language processing techniques, and other related concepts. You have made a good decision by choosing C++ for this endeavor, as it is a high-performance programming language that is utilized in many complex systems, including artificial intelligence. ❤

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

    thanks for your toturial but we need more examples to understand it better because we are begginners

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

    Thank you!!

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

    Using uninitialized variables causes UB (Undefined Behavior). This becomes dangerous when it comes to uninitialized pointers because it could cause segmentation fault (don't forget nullptr :))

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

    Awesome!

  • @AhmedRaza-ty7zq
    @AhmedRaza-ty7zq ปีที่แล้ว

    Awesome video😎😎👍👍

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

    please we need videos about CPP REST SDK ---(client & server) 🙃

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

      as soon as there is enough demand I will, for sure, but in the meantime I'm trying to focus on topics that are most requested by my community. 🤞

  • @RoshanMishra-g2y
    @RoshanMishra-g2y ปีที่แล้ว

    but i'm getting value of test without initializing it in local variable..? tell me please...?

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

    GREAT VIDEO❤

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

      glad to hear :)

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

    please complete all c++ topics,

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

      Will do, no worries. I'm spending all of my time in creating educational programming content and most of it you can find for free here on my youtube channel, and there is a lot more to come.
      In addition, my guess is that you will be happy to learn that I'm also working on something very special, my own practical programming course where I'm walking you through most important programming concepts and teaching you how to implement them on real application. It will be packed with practical knowledge, so go ahead, use this link bit.ly/SimplifyingCoding to leave me your email and as a token of my appreciation, I will send you a special discount when the course is launched. ❤️

  • @AhmedRaza-ty7zq
    @AhmedRaza-ty7zq ปีที่แล้ว

    7:50 the test variable is not initialized in the main().🤔🤔

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

    you could have sent the "User" using const ref

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

      Yup, const would ensure that the function will not change it, just print its value

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

    how long has it been 🥺🥰

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

      Too long, I know, but it was for good reason. I'm working on my Practical Programming course and if you liked my content so far than believe me when I tell You that You will enjoy this. Subscribe here bit.ly/SimplifyingCoding not to miss it and to also get nice discount soon when I publish it. Cheers

  • @AhmedRaza-ty7zq
    @AhmedRaza-ty7zq ปีที่แล้ว

    5:17 This program will not print the first name, last name, age, and Email.

  • @Lukas-ft6te
    @Lukas-ft6te ปีที่แล้ว

    Hey, I was just wondering what is your height? I'm conducting a survey for a school project.

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

      Hahahaha, I'm 175cm, where do I stand on the charts 😅😁

    • @Lukas-ft6te
      @Lukas-ft6te ปีที่แล้ว

      @@CodeBeauty top 7 percent

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

    Glad to see some quality content after the shorts lol

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

      all work and no fun is bad for health 🤭

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

    ❤çox sağ olun

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

    😄😄😄😇

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

      😁😁

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

    i don't like ads

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

    reason is that you have not initialized

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

    Please no more click bait

  • @henrymugendi-s5x
    @henrymugendi-s5x 8 หลายเดือนก่อน

    there will be errors

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

    ok

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

    goodluck....miss codebeauty...

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

    you have to say if your videos are sponsored you know

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

    wome coding? things you see online on youtube.

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

      Well, if women shouldn't code, who's going to fix all the bugs in your code? 😁

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

    You are completely out of focus on all four corners and what you type seems to be fuzzy at best. Thanks.
    Sorry.....My bad....Only up to 3:52 is fuzzy....Now it seems ESP has made it focus after all. Thanks again for your work.

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

    Thank you