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

  Рет қаралды 229,271

CodeBeauty

CodeBeauty

Күн бұрын

Пікірлер: 342
@CodeBeauty
@CodeBeauty 4 жыл бұрын
📚 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 KZbinChannel { public: string Name; string OwnerName; int SubscribersCount; list PublishedVideoTitles; }; int main() { KZbinChannel 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 жыл бұрын
@@Павелик-з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 менің KZbin каналыма үлкен рахмет, мен сізді көргеніме қуаныштымын.🙂
@TimelyEnlightenment
@TimelyEnlightenment Жыл бұрын
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 👏
@themaskedguy4482
@themaskedguy4482 9 ай бұрын
Can you suggest some good books
@kathrinlahner5620
@kathrinlahner5620 3 жыл бұрын
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 жыл бұрын
Thank you so much 🥰💞
@joyceosas7793
@joyceosas7793 11 ай бұрын
Three years already and your videos are still very useful. God bless you, Saldina
@CodeBeauty
@CodeBeauty 11 ай бұрын
🙏💙
@mudmaster9965
@mudmaster9965 2 жыл бұрын
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 жыл бұрын
i used to dread C++ until i started following this channel. Teaching is a s skill. Thank you so much...
@dev.antunes
@dev.antunes 3 жыл бұрын
I understood 100%. Now I see the meaning of the constructors. *Thank you so much, Saldina.*
@CodeBeauty
@CodeBeauty 3 жыл бұрын
Great! I'm happy to help 🤗
@StephenElDrago
@StephenElDrago 3 жыл бұрын
watched five different videos about classes and your video made it all click, thank you. you saved my life
@Nathemmanuel
@Nathemmanuel 8 ай бұрын
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.
@melody.-.1839
@melody.-.1839 8 ай бұрын
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
@RainMoneyProductions
@RainMoneyProductions Ай бұрын
currently taking data structures. thank you for this your work is incredible
@natnaelhabtamu2799
@natnaelhabtamu2799 3 жыл бұрын
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
@phungat6621
@phungat6621 3 жыл бұрын
I have to admit that your video is absolutely clear. Thats why I choose to watch your video despite language difference
@yuanyuan23191212
@yuanyuan23191212 3 жыл бұрын
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.😀
@subratadas9772
@subratadas9772 2 жыл бұрын
everyone who do such works,give time ,and bring such content is worthy to be appreciated,plz bring data structures too.
@mayureshharihar2557
@mayureshharihar2557 2 жыл бұрын
Feeling very lucky after found this channel 😇
@ashenhewavithana9479
@ashenhewavithana9479 3 жыл бұрын
Fav songs, wind of change - scorpions, creep - radiohead, every breath you take - the police, drops of jupiter - train.
@miaflorida9410
@miaflorida9410 10 ай бұрын
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
@rudradev3873
@rudradev3873 2 жыл бұрын
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 жыл бұрын
Wow, good luck, I'm so glad to hear that top level students are learning from my channel 😃😃
@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
@ASandro.AllMat
@ASandro.AllMat 7 ай бұрын
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.
@WestCoastWanderer
@WestCoastWanderer 4 жыл бұрын
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 жыл бұрын
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!
@WintaRussom
@WintaRussom 3 жыл бұрын
Thanks a lot! I love your explanation and the way you've used relatable class's name and objects ☺️
@abdullahlahore7416
@abdullahlahore7416 7 ай бұрын
you've made programming looks so easy. More power to you girl.
@MatthewJohnson-yc7nx
@MatthewJohnson-yc7nx 2 жыл бұрын
I appreciate your hardwork to make these videos at 3am. I have had more success with your videos gaining practice and understanding foreign concepts.
@CodeBeauty
@CodeBeauty 2 жыл бұрын
🥰🥰🤗
@stephenjames5745
@stephenjames5745 3 жыл бұрын
This series is terrific! Thank you.
@CodeBeauty
@CodeBeauty 3 жыл бұрын
🤗🥰
@erenjaeger__1
@erenjaeger__1 Жыл бұрын
THANK U MAM 🙇‍♀️ LOVE FROM INDIA❤️
@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
@erende44
@erende44 2 жыл бұрын
best explanation I found so far, thanks!
@shdyo
@shdyo 8 ай бұрын
Great explanation, very clear! Only complaint is no dark mode 9/10
@CodeBeauty
@CodeBeauty 8 ай бұрын
Complaint adopted! I started using dark mode in my later videos 😃👋
@shdyo
@shdyo 8 ай бұрын
@@CodeBeauty Thank you! This is a great resource for learning!
@mikegenco9646
@mikegenco9646 Жыл бұрын
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.
@clakker9412
@clakker9412 2 жыл бұрын
I love you so much really thankkk you!!!!!!!!!!!!!!!!! finally i found someone who teaches really REALLY WELLLL
@ib_parametres724
@ib_parametres724 Жыл бұрын
Nice explanation of the concept with example, thanks.
@hamzehidris6340
@hamzehidris6340 2 жыл бұрын
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!
@raykos4257
@raykos4257 2 жыл бұрын
Great tutorial! So clear and well paced!!!
@ΔανιήλΤριανταφύλλης
@ΔανιήλΤριανταφύλλης Жыл бұрын
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
@JerichoKawere
@JerichoKawere 6 ай бұрын
You are indeed the software developer keep it up!!!!
@diogopocas7943
@diogopocas7943 Жыл бұрын
Thank you so much. I had so much trouble understanding this in class
@nicolascrespo4643
@nicolascrespo4643 2 жыл бұрын
Thank you! Much appreciated. This series are great!
@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 3 ай бұрын
I love ur videos!! It'll really help me with my finals🌸
@user-zj9pq5xc7x
@user-zj9pq5xc7x Жыл бұрын
excellently explained. thank you!!
@gagef4101
@gagef4101 Жыл бұрын
Little late but my favorite song is Beast of Burden by The Rolling Stones. Thanks for your videos!
@zainatta7544
@zainatta7544 9 ай бұрын
Thank you so much. I finally understand constructors
@leonardopantoja7121
@leonardopantoja7121 5 ай бұрын
Te felicito por tu Canal. Explicas muy bien. Voy a hacer todo el curso. Espero aprender todo. GRACIAS.
@Farjanamoon-no7ok
@Farjanamoon-no7ok Жыл бұрын
you are really a great tutor
@bushraw66
@bushraw66 2 жыл бұрын
that is exactly what I was looking for, very helpful. thank you so much
@jasnarmstrng
@jasnarmstrng Жыл бұрын
So far, so good 🙂 ... Song: Where I am - Freetown Collective.
@ziam4393
@ziam4393 3 жыл бұрын
What can I say other than my jaws only dropped in amazement at how you easily delivered this.
@utku495
@utku495 2 жыл бұрын
Great, comprehensible video! Good job👍
@jianhe
@jianhe 2 жыл бұрын
you explained why very well. Thanks.
@michelmoncada22
@michelmoncada22 Жыл бұрын
my TA recommended you THank you Belen and thank you it was really helpful
@CodeBeauty
@CodeBeauty Жыл бұрын
🙌🥰
@DavidMalunga-t6w
@DavidMalunga-t6w Ай бұрын
i love you code beauty you are such a genius
@Cesar33-pl
@Cesar33-pl 3 жыл бұрын
You are an excellent teacher, thank you very much!
@CoolName312
@CoolName312 3 жыл бұрын
Flipsyde - one more trip The guitar solo 😍😍
@МаксимМихайлов-п5е
@МаксимМихайлов-п5е 3 жыл бұрын
Very clear && easy to understand, thank you!
@leonraicevic1360
@leonraicevic1360 Жыл бұрын
Thank you, great videos! My two fav songs will be Fleetwood Mac - Dreams and ofc The Hooters - Johnny B!
@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!!!!!!
@athanusri8337
@athanusri8337 Жыл бұрын
miss saldina.. you made my day .. thank u so much
@iwankalinow7028
@iwankalinow7028 8 ай бұрын
Clear and simple. Thanks🌹
@madalinavarga3337
@madalinavarga3337 3 жыл бұрын
Hi! Amazing tutorials,i watched only two ,for the moment, and i really like its.
@vicky404_vicky
@vicky404_vicky 4 жыл бұрын
Clear explanation, pls do more videos in c++
@261-monishg2
@261-monishg2 2 жыл бұрын
after lot of vedios and finally found the perfect one!!!!!
@yifeiren8632
@yifeiren8632 2 жыл бұрын
Your videos are really helpful! Thanks a lot!!
@harshitkhanna1918
@harshitkhanna1918 2 жыл бұрын
U just got a sub great job explaining ☺️
@Kouradopalatis
@Kouradopalatis 2 ай бұрын
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.
@ankursingh9214
@ankursingh9214 3 жыл бұрын
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...
@sammy949
@sammy949 3 жыл бұрын
Thanks a lot! Your example choose very good.
@epj_oficial
@epj_oficial Жыл бұрын
My favorite song is Circe's Spell from Kalidia band. Kisses from Brazil, Saldina...
@CodeBeauty
@CodeBeauty Жыл бұрын
Muitos beijos para o Brasil 🥰❤️
@1conscience0dimension
@1conscience0dimension 3 жыл бұрын
really a great video well structured. you have a great future but don't believe the hype
@DiamondDavid55
@DiamondDavid55 3 жыл бұрын
Appreciate your work. easy to understand
@ednakazuya12
@ednakazuya12 3 жыл бұрын
My favorite bands, Mathew Sweet, NOFX, Face to Face, Tokyo Jihen, and Third Eye Blind
@saadullahgulshan50
@saadullahgulshan50 2 жыл бұрын
@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 😢😢😢😢😢😢😢😢😢😢😢😢😢 😂😂😂😂💕💕💕💕💕💖💖💖💖
@Selinzik_CEO
@Selinzik_CEO 4 ай бұрын
The song is called "Paradise by Lil Uzi Vert"....Please listen to it when you're driving and there's a sunset.
@shubhanshsingh
@shubhanshsingh Жыл бұрын
Brilliant, Excellent, thanks so so muchh !!!!
@alexjulius69
@alexjulius69 2 жыл бұрын
Thanks, explained perfectly
@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.
@kiwi-sw9kn
@kiwi-sw9kn Жыл бұрын
Does she have a video showcaseing her Setup so I can have thoose shortcuts aswell in my compiler ?
@nicholascureton933
@nicholascureton933 2 жыл бұрын
There are a lot of songs I like. Some of them are... " Making love out of nothing at all " by Air Supply. " Man Against the World" by Survivor. " Take me to your heart " by MLTR. "Take me home , country road" "Nessun dorma"by Pavarotti. "Canon in D " by Pachelbel. "Anno 1404 When Culture Meet". It's a game song. "Anno 1800 Hush" . "Anno 2070 A Future Named Hope " "Never Enough" , The Greatest Show Man movie song. "No time for cautions" Interstellar movie song. "Pirate of the Caribbean" movie song.
@namoralthy1067
@namoralthy1067 3 жыл бұрын
What a great video! Your explanation is very good
@Unikv
@Unikv 3 жыл бұрын
Thanks a lot. Question, i'm looking to make a counter for every object listed, but i don't wanna use global variables. How would you recommend to do this? Great video as always :)
@0240tutor
@0240tutor Жыл бұрын
Saldina, watching your wonderful video, probably you should have used vector, you did not delete anything from the middle of the list, so effectively this can be a vector here, since it saves on memory against a linked-list, with love.
@carlasanchez4349
@carlasanchez4349 2 жыл бұрын
Really clear video - thank you
@eminbaybarstimurstudent3802
@eminbaybarstimurstudent3802 3 жыл бұрын
Such a great video. It was a great practice.
@luisortega5636
@luisortega5636 3 жыл бұрын
Beautiful! My favorite song is Time from Pink Floyd! Great Video!
@VladRudnyk
@VladRudnyk 3 жыл бұрын
Hi, why are you placing: system("pause>0"); at the end of the code, what does it do?
@CodeBeauty
@CodeBeauty 3 жыл бұрын
kzbin.info/www/bejne/jJSvfn97rJmmpJo 🤗🤗
@spiderpig993
@spiderpig993 3 жыл бұрын
can you explain what the push_back() function does? Is that a predefined function? Very helpful vids btw.
@zoejackson7184
@zoejackson7184 2 жыл бұрын
Idk if this is any help now but push_back() appends whatever is in the parenthesis to the end of the string
@amortalbeing
@amortalbeing 2 жыл бұрын
@@zoejackson7184 push_back is one of the methods in the list class. remember you had a list of strings where you defined it as list sth. now sth is a list of strings and when you want to add something to that list, you have several options, one of which is a method called push_back.
@liquidred257
@liquidred257 3 жыл бұрын
Is there an advantage to using "list" instead of perse "PublishedVideoTitles string[100]" (so I guess an array)? Also I really like rainbow in the dark by Dio
@FlyGamingChannel
@FlyGamingChannel 4 ай бұрын
Why do you not use initialiser lists in your constructors?
@firstlylast5890
@firstlylast5890 9 ай бұрын
understood, but, a light theme, really!
@Coolpanda77454
@Coolpanda77454 Жыл бұрын
can we add the video title in the constructor as one of the elements that takes string?
@PrasadPatil-eg1lo
@PrasadPatil-eg1lo 3 жыл бұрын
Woah its great thnx saldina✌🏻
@CodeBeauty
@CodeBeauty 3 жыл бұрын
☺️🤗
@ashrsfsiliman452
@ashrsfsiliman452 3 жыл бұрын
Thank you for your great job
@CodeBeauty
@CodeBeauty 3 жыл бұрын
🥰🤗
@ksanavengsar4050
@ksanavengsar4050 Жыл бұрын
Rammtein ❤ thank you so much for video
@timobreumelhof88
@timobreumelhof88 10 ай бұрын
Great series, thank you.. FYI Song.Title = "Kerosene", Song.Artist = "Big Black"
@nauj8316
@nauj8316 3 жыл бұрын
My way by Frank Sinatra it's one of my favourite songs and My Favorite Things by John Coltrane.
@varunabp5581
@varunabp5581 2 жыл бұрын
I have a question.. Instead of constructor why can't we use member function here? What contructor makes the difference?
@krishna_3406
@krishna_3406 7 ай бұрын
you should deserve more subscribers ☺
@harry8912
@harry8912 2 жыл бұрын
What if you want the user to input everything in the constructor instead of pre filling everything out?
SMART POINTERS in C++ (for beginners in 20 minutes)
24:32
CodeBeauty
Рет қаралды 102 М.
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН
8 Data Structures Every Programmer Should Know
17:09
ForrestKnight
Рет қаралды 119 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 810 М.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 251 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 97 М.
Naming Things in Code
7:25
CodeAesthetic
Рет қаралды 2,2 МЛН
When you Accidentally Compromise every CPU on Earth
15:59
Daniel Boctor
Рет қаралды 861 М.
you will never ask about pointers again after watching this video
8:03
C++ OOP - What is encapsulation in programming?
11:21
CodeBeauty
Рет қаралды 146 М.
What are header files in C++ ( PROGRAMMING TUTORIAL for beginners)
23:54
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН