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

  Рет қаралды 240,653

CodeBeauty

CodeBeauty

Күн бұрын

Пікірлер: 347
@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 2 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Three years already and your videos are still very useful. God bless you, Saldina
@CodeBeauty
@CodeBeauty Жыл бұрын
🙏💙
@mudmaster9965
@mudmaster9965 3 жыл бұрын
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...
@Hermitinarowboat
@Hermitinarowboat 2 ай бұрын
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!!!
@dev.antunes
@dev.antunes 4 жыл бұрын
I understood 100%. Now I see the meaning of the constructors. *Thank you so much, Saldina.*
@CodeBeauty
@CodeBeauty 4 жыл бұрын
Great! I'm happy to help 🤗
@melody.-.1839
@melody.-.1839 Жыл бұрын
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
@Nathemmanuel
@Nathemmanuel Жыл бұрын
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.
@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
@subratadas9772
@subratadas9772 3 жыл бұрын
everyone who do such works,give time ,and bring such content is worthy to be appreciated,plz bring data structures too.
@RainMoneyProductions
@RainMoneyProductions 5 ай бұрын
currently taking data structures. thank you for this your work is incredible
@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
@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.
@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.😀
@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.
@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 😃😃
@mayureshharihar2557
@mayureshharihar2557 2 жыл бұрын
Feeling very lucky after found this 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
@gadgeting6039
@gadgeting6039 8 ай бұрын
Thanks!
@CodeBeauty
@CodeBeauty 8 ай бұрын
Thank you! 🥰🥰
@abdullahlahore7416
@abdullahlahore7416 11 ай бұрын
you've made programming looks so easy. More power to you girl.
@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!
@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
@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 :)
@MatthewJohnson-yc7nx
@MatthewJohnson-yc7nx 3 жыл бұрын
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 3 жыл бұрын
🥰🥰🤗
@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.
@WintaRussom
@WintaRussom 4 жыл бұрын
Thanks a lot! I love your explanation and the way you've used relatable class's name and objects ☺️
@shdyo
@shdyo 11 ай бұрын
Great explanation, very clear! Only complaint is no dark mode 9/10
@CodeBeauty
@CodeBeauty 11 ай бұрын
Complaint adopted! I started using dark mode in my later videos 😃👋
@shdyo
@shdyo 11 ай бұрын
@@CodeBeauty Thank you! This is a great resource for learning!
@ashenhewavithana9479
@ashenhewavithana9479 3 жыл бұрын
Fav songs, wind of change - scorpions, creep - radiohead, every breath you take - the police, drops of jupiter - train.
@ΔανιήλΤριανταφύλλης
@ΔανιήλΤριανταφύλλης Жыл бұрын
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
@clakker9412
@clakker9412 2 жыл бұрын
I love you so much really thankkk you!!!!!!!!!!!!!!!!! finally i found someone who teaches really REALLY WELLLL
@erenjaeger__1
@erenjaeger__1 Жыл бұрын
THANK U MAM 🙇‍♀️ LOVE FROM INDIA❤️
@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!
@stephenjames5745
@stephenjames5745 4 жыл бұрын
This series is terrific! Thank you.
@CodeBeauty
@CodeBeauty 4 жыл бұрын
🤗🥰
@sushimuppet4
@sushimuppet4 7 ай бұрын
I love ur videos!! It'll really help me with my finals🌸
@ib_parametres724
@ib_parametres724 Жыл бұрын
Nice explanation of the concept with example, thanks.
@raykos4257
@raykos4257 2 жыл бұрын
Great tutorial! So clear and well paced!!!
@erende44
@erende44 2 жыл бұрын
best explanation I found so far, thanks!
@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!
@TRUTHSTUDENTSVIDEO
@TRUTHSTUDENTSVIDEO Жыл бұрын
Thanks!
@TRUTHSTUDENTSVIDEO
@TRUTHSTUDENTSVIDEO Жыл бұрын
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 💖💖
@bijoykrishnaChakrabarty
@bijoykrishnaChakrabarty Ай бұрын
Thanks for the informative video. Watching from India. 🤩🤩
@diogopocas7943
@diogopocas7943 Жыл бұрын
Thank you so much. I had so much trouble understanding this in class
@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 🤗🤗
@nicolascrespo4643
@nicolascrespo4643 3 жыл бұрын
Thank you! Much appreciated. This series are great!
@leonardopantoja7121
@leonardopantoja7121 9 ай бұрын
Te felicito por tu Canal. Explicas muy bien. Voy a hacer todo el curso. Espero aprender todo. GRACIAS.
@JerichoKawere
@JerichoKawere 10 ай бұрын
You are indeed the software developer keep it up!!!!
@user-zj9pq5xc7x
@user-zj9pq5xc7x Жыл бұрын
excellently explained. thank you!!
@gagef4101
@gagef4101 2 жыл бұрын
Little late but my favorite song is Beast of Burden by The Rolling Stones. Thanks for your videos!
@bushraw66
@bushraw66 2 жыл бұрын
that is exactly what I was looking for, very helpful. thank you so much
@snowball5321
@snowball5321 2 ай бұрын
Came here to learn programming and obsessed with lorelei last couple days haaha:) and learned constructors as well so thank u
@utku495
@utku495 2 жыл бұрын
Great, comprehensible video! Good job👍
@zainatta7544
@zainatta7544 Жыл бұрын
Thank you so much. I finally understand constructors
@michelmoncada22
@michelmoncada22 Жыл бұрын
my TA recommended you THank you Belen and thank you it was really helpful
@CodeBeauty
@CodeBeauty Жыл бұрын
🙌🥰
@leonraicevic1360
@leonraicevic1360 2 жыл бұрын
Thank you, great videos! My two fav songs will be Fleetwood Mac - Dreams and ofc The Hooters - Johnny B!
@DavidMalunga-t6w
@DavidMalunga-t6w 4 ай бұрын
i love you code beauty you are such a genius
@Farjanamoon-no7ok
@Farjanamoon-no7ok Жыл бұрын
you are really a great tutor
@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!!!!!!
@FlyGamingChannel
@FlyGamingChannel 7 ай бұрын
Why do you not use initialiser lists in your constructors?
@iwankalinow7028
@iwankalinow7028 11 ай бұрын
Clear and simple. Thanks🌹
@ziam4393
@ziam4393 3 жыл бұрын
What can I say other than my jaws only dropped in amazement at how you easily delivered this.
@yifeiren8632
@yifeiren8632 3 жыл бұрын
Your videos are really helpful! Thanks a lot!!
@Cesar33-pl
@Cesar33-pl 3 жыл бұрын
You are an excellent teacher, thank you very much!
@МаксимМихайлов-п5е
@МаксимМихайлов-п5е 3 жыл бұрын
Very clear && easy to understand, thank you!
@harshitkhanna1918
@harshitkhanna1918 2 жыл бұрын
U just got a sub great job explaining ☺️
@kiwi-sw9kn
@kiwi-sw9kn 2 жыл бұрын
Does she have a video showcaseing her Setup so I can have thoose shortcuts aswell in my compiler ?
@madalinavarga3337
@madalinavarga3337 3 жыл бұрын
Hi! Amazing tutorials,i watched only two ,for the moment, and i really like its.
@jianhe
@jianhe 3 жыл бұрын
you explained why very well. Thanks.
@jasnarmstrng
@jasnarmstrng 2 жыл бұрын
So far, so good 🙂 ... Song: Where I am - Freetown Collective.
@manoharsagunthalla9215
@manoharsagunthalla9215 3 жыл бұрын
While creating the publishedvideoTitles con’t we creat in single code instead of three lines?
@athanusri8337
@athanusri8337 2 жыл бұрын
miss saldina.. you made my day .. thank u so much
@Coolpanda77454
@Coolpanda77454 Жыл бұрын
can we add the video title in the constructor as one of the elements that takes string?
@DiamondDavid55
@DiamondDavid55 3 жыл бұрын
Appreciate your work. easy to understand
@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 😢😢😢😢😢😢😢😢😢😢😢😢😢 😂😂😂😂💕💕💕💕💕💖💖💖💖
@vicky404_vicky
@vicky404_vicky 4 жыл бұрын
Clear explanation, pls do more videos in c++
@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.
@lhaellor
@lhaellor 3 жыл бұрын
how to make a function which returns a value? for example a function in a class which returns the value of the area of a rectangle or any other calculations and etc? any recommended videos?
@harry8912
@harry8912 2 жыл бұрын
What if you want the user to input everything in the constructor instead of pre filling everything out?
@261-monishg2
@261-monishg2 2 жыл бұрын
after lot of vedios and finally found the perfect one!!!!!
@ksanavengsar4050
@ksanavengsar4050 Жыл бұрын
Rammtein ❤ thank you so much for video
@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.
@CoolName312
@CoolName312 3 жыл бұрын
Flipsyde - one more trip The guitar solo 😍😍
@sammy949
@sammy949 3 жыл бұрын
Thanks a lot! Your example choose very good.
@epj_oficial
@epj_oficial 2 жыл бұрын
My favorite song is Circe's Spell from Kalidia band. Kisses from Brazil, Saldina...
@CodeBeauty
@CodeBeauty 2 жыл бұрын
Muitos beijos para o Brasil 🥰❤️
@carelsoney4480
@carelsoney4480 2 жыл бұрын
so are methods, like void GetInfo, similar to functions?
@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.
@eminbaybarstimurstudent3802
@eminbaybarstimurstudent3802 3 жыл бұрын
Such a great video. It was a great practice.
@candogan9192
@candogan9192 15 сағат бұрын
Happy Nation, one of my favourites
@1conscience0dimension
@1conscience0dimension 3 жыл бұрын
really a great video well structured. you have a great future but don't believe the hype
@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
@sunilkale7420
@sunilkale7420 2 жыл бұрын
String data type is not working in ubuntu Linux OS how to use it Mam
@krishna_3406
@krishna_3406 10 ай бұрын
you should deserve more subscribers ☺
@Zabi281
@Zabi281 Жыл бұрын
Very good video 📸 deserve likes and subscription.
@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.
@the_muhammadali_7338
@the_muhammadali_7338 3 жыл бұрын
Can we create array of an object, for defining /creating more objects?
@PrasadPatil-eg1lo
@PrasadPatil-eg1lo 3 жыл бұрын
Woah its great thnx saldina✌🏻
@CodeBeauty
@CodeBeauty 3 жыл бұрын
☺️🤗
@carlasanchez4349
@carlasanchez4349 2 жыл бұрын
Really clear video - thank you
@namoralthy1067
@namoralthy1067 3 жыл бұрын
What a great video! Your explanation is very good
@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❤️🥰
C++ OOP - What is encapsulation in programming?
11:21
CodeBeauty
Рет қаралды 154 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Friend functions and classes in C++ (Programming for beginners)
18:18
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 344 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 915 М.
The Absolute Best Intro to Monads For Software Engineers
15:12
Studying With Alex
Рет қаралды 681 М.
you will never ask about pointers again after watching this video
8:03
What is an object pool, and how to create one in C?
23:14
Jacob Sorber
Рет қаралды 20 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН