Friend Functions in C++ | C++ Tutorials for Beginners #26

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

КОМЕНТАРІ • 1,6 тис.

  • @shivanshgoyal310
    @shivanshgoyal310 4 роки тому +428

    I loved the Analogy 😂😂😂😂Compiler police, complex dost hai mera... That one 😂😂🔥

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

      Yes, true...

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

      Maja toh aa rahi hain series' main starting main oops ke concept dimag ke upar se nikal rhe the but abb sab samajh aa raha hain, thanks harry bhai.

  • @cleverqwerty4504
    @cleverqwerty4504 3 роки тому +539

    "Mai ek simple si class banaunga, maan lo 'Complex' " 😂 BTW great series :) Agar iss baar kahi place ho gayi to wo aapke wajeh se hoga

    • @vaibhav7457
      @vaibhav7457 3 роки тому +10

      dii wanna suggest anything to a juniour starting programming>?

    • @cleverqwerty4504
      @cleverqwerty4504 3 роки тому +47

      @@vaibhav7457 Ek programming language select karo and learn everything about it. DSA ache se padho nahi to placements ke time pe dard hoga. And DBMS padh lo please, its boring and time consuming but saare companies ko chahiye... Last tak kuch mat chodna pleaseeeeeeeeee

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

      @@cleverqwerty4504 i chose c++ as I've studied it earlier And baki sari cheeze aapki krta hu folllow thnx di🙏

    • @sagarbedare4491
      @sagarbedare4491 2 роки тому +20

      @@cleverqwerty4504 didi lag gayi kya placements

    • @risinghard907
      @risinghard907 2 роки тому +4

      @@sagarbedare4491 😂😂

  • @sohammukherjee_2193
    @sohammukherjee_2193 3 роки тому +242

    I really appreciate your efforts man. 74 videos completely free on UA-cam is not a joke. Thanks a lot for this playlist.

  • @durgesh2493
    @durgesh2493 2 роки тому +211

    Finally got placed in VISA Inc. A big thanks to Code With Harry for providing such beautiful and easy explanations to such complicated topics. Just want to meet Harry sir IRL once...

  • @shatviksmit3388
    @shatviksmit3388 3 роки тому +66

    Sir, I have thought of a good analogy to explain friend function
    Suppose I have one friend which my parents do not know of, and one day he suddenly comes to our home.
    So, my parents will stop him coming home because they don't know about him then he will say I am a friend of your son. Then they will say, how can we believe you and then he will call me and then I will tell my mum that yes he is my friend. But, this doesn't make him a member of our family, he has some limits in which he has to operate
    In this example, my parents are compiler, I am a class and my friend is a foreign function

    • @subharoopkabi7842
      @subharoopkabi7842 6 місяців тому +3

      Nice analogy bro....👍

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

      Puri vdo ko aap vaise bta diye😊.... 🙏 Thanks 😊

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

    Yes , as a beginner this videos is very helpful for me to learn a first programing language
    Without knowledge of c programming .

  • @abhishekkhandare4872
    @abhishekkhandare4872 4 роки тому +82

    I saw many videos of frnd function but i got it from here. Thanks a lot sir🙃

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

    19:09 This course is so much useful for me as I am going in first year of my college and learning C++ skill is one of the best activity which helps me to utilize my time in a productive and creative way. Thanks a lot Harry Bhaiya.

  • @ranjeet2204
    @ranjeet2204 4 роки тому +174

    Dude , Love your C++ series.
    I want to start CP that's why I am learning C++.
    As I already learned c so it's not that much difficult for me to understand.
    Thank you bro for you effort.🥰

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

    I'm one of the most famous coder of my class & all that bcoz of you.. Thank you so much & I'm repaying u by suggesting you every person i meet related to coding.❤

  • @rambhardwaj5555
    @rambhardwaj5555 4 роки тому +6

    Hi bhai m class 10 m hu
    Maine aapki python ki full playlist dekhi h
    M ab python programming acche s seekh raha hu
    Maine class 9 se python start ki thi
    Thanks bhai

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

    The way sir interpret compiler as police is really fascinating.
    Heads off to your creativity.

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

    You are my mentor sir!!!
    I truly admire you, you are my inspiration. Keep doing well in life. God bless you.

  • @rishabhprasad7145
    @rishabhprasad7145 2 роки тому +21

    Great videos, I learned complete c and c++ programming from your channel. I am a civil engineering student but was interested in coding and because of your channel I am realizing my dream. Thanks bro for supporting millions of students like us :)

  • @kunalmodi6814
    @kunalmodi6814 3 роки тому +34

    I am currently in the 3rd year of engineering and this really helped, ngl. You really dont miss any important points or scenarios that we ignore most of the time. Really appreciate that. Keep doing the good work

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

    Guy I just started watching your playlist it was very easy to understand and your amazing teacher

  • @khuramnawaz358
    @khuramnawaz358 3 роки тому +14

    Tomorrow is my paper of c++ oop and I'm clearing my concepts watching your well explained videos thanks buddy♥️♥️♥️

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

    After 3 years harry's this playlist is also lightening whole world of IT with its bright light. Through this masterpiece on the UA-cam you can get free access to the top level content. I just want to provide complements to the Harry bhi for such a blessed playlist. Thanks!

  • @TheISP
    @TheISP 4 роки тому +22

    8:08 -- The program throws an error stating that a parenthesis is expected to close the sumComplex() function. Also, I am very thankful Harry bhai! I have learnt a lot in this series.

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

      and a, b are private functions

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

      @@satyamborade3954why there is complex written before sumcomplex function what does it mean....
      Generally we write datatypes before the function name na???

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

      @@aniket_k720 actually if you observe we are returning a complex number and so we have mentioned there the return type of function

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

      @@satyamborade3954 mtlb i we can say that it is a rule to write class name then function name when we use friends function??

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

      @@aniket_k720 no, Here Complex is the name of class and we are making another complex number using that class and then returning it so we need to write the return type of function as complex

  • @SuperHironmoy
    @SuperHironmoy 2 роки тому +15

    Hi harry, I started this course from few days ago and I really appreciate your work. You're doing a great job and I thanks to teach us in very simple and understandable way.

  • @engineerbhai7642
    @engineerbhai7642 4 роки тому +64

    One million subscribers soon. You are great.

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

      y harry bhai not has 1 million reach till now
      that is so bad
      this is the best channel i have seen
      it deserve more than 5 million definitely

    • @SahilKumar-rz3th
      @SahilKumar-rz3th 3 роки тому +3

      @@tanishchavan6472 check again bro

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

      1.5 m now 🤣

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

      @@zombiekiller7101 its now 1.6M😌

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

      1.8M 😌🙂

  • @syedammarali108
    @syedammarali108 4 роки тому +6

    Really enjoying this course and it is very helpful for me.
    thanks for creating this course and others too.
    It is very helpful for each and everyone.
    Best channel for coding.

  • @ritechaserious
    @ritechaserious 5 місяців тому +3

    sir very nice explanation : meri maujoodgi ka ahsaas dila rhi sir

  • @rickk3300
    @rickk3300 3 роки тому +64

    8:05 a and b are private data members, hence they can't be accessed using the dot operator. They can only be accessed inside any member function.

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

    The best-ever explanation about programming languages in Hindi. Thank you so much Harry Bro.

  • @rajatshukla2605
    @rajatshukla2605 2 роки тому +5

    Enjoying the course so far. It is indeed proving to be helpful . Thanks.

  • @MuhammadJameel-w6d
    @MuhammadJameel-w6d 10 місяців тому +4

    Nice, keep it up, very helpful videos you are making to help other programmers .

  • @zeevlogs4250
    @zeevlogs4250 4 роки тому +10

    Harry Sir you are my amazing teacher of C++ I love you
    I am preparing for my university exams of OOP with the help of your C++ Series and also I shared it with my university members before when I did not know anything about C++ I was very upset but your first videos encouraged me to learn it you made this series very very interesting, enjoyable and entertaining I respect you a lot I appreciated your hardworking please keep it up and your series made me unique among my class fellows and hope so that I will get a better result in exams ,
    again thanks a lot I have no words about your appreciation
    again thanks lot
    Love you from Pakistan.

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

    i learned java for an earlier course from codewithharry and after an year i began c++ playlist and mannn YOU ACE IT AND HOW BEAUTIFULLY YOU EXPLAIN THINGS I COULD UNDERSTAND EACH N EVERYTIHNG ITNE ACHEY SE
    KEEP UP THE GOOD WORK!!!!

  • @ahmadqazi9291
    @ahmadqazi9291 3 роки тому +13

    I m really enjoying this course. Its full of Practical, Knowledgable & Latest one. As a student of Computer science it's very beneficial for me to Learn Advance levels even which are not covered by university curriculum, that you provide us . Thanks alot sir Harry, I love you!

  • @sys7emH4cked
    @sys7emH4cked 2 роки тому +7

    Absolutely your playlists of this course is fantastic 😊

  • @tayyab.sheikh
    @tayyab.sheikh Рік тому +7

    18:52 , he was about to say "Bilkul bhi samajh nahi aa rahi " but he refrained himself 😂.

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

    Such lucid and easy description. No wonder Harry bhai has such a massive student pool.

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

    I am loving the course. Great way to explain things. Thanks harry bhaiya😊❤

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

    #include
    using namespace std;
    int main()
    {
    std::cout

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

    I like your videos sir and it's really helpful.
    Thanks for teaching us sir.

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

    In the complex number addition function, it is not possible to add the complex nos. that way because two private variables a and b are used there, and that function is outside of the class 'Complex'. So, it will throw an error saying that Private vars cannot be used directly outside the class where they are initialized/declared.

  • @chandanramteke7001
    @chandanramteke7001 2 роки тому +16

    This is how studies and enjoyment go hand in hand 👌👌
    Nice lecture 👍

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

    sir thanks you are a great man in the days of 2021st century no one care about any one they only wantmoney . but you sir you are great you want teach us not make money by us .
    thanks sir .

  • @englishgamer2503
    @englishgamer2503 Рік тому +3

    Thanks bhai for this free c++ course

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

    sir sir sir, aapki coding videos bhot zada achi hain. Best in India. Teaching is an art and you are an artist of logical expression.

  • @adityagamingofficial2523
    @adityagamingofficial2523 4 роки тому +364

    Sumcomplex is allow to do anything with my Private parts 🤣🤣🤣

    • @andromedagalaxy1266
      @andromedagalaxy1266 3 роки тому +65

      😂😂😂,bas yahi comment ke liye vedio pause karke aaya😂😂😂..Harry Bhaiya continue...Padhai ke time aisi galatiya ,mood fresh kar deti hai

    • @ashwinpatidar8557
      @ashwinpatidar8557 3 роки тому +9

      @@andromedagalaxy1266 same yrr ..me bhi iske liya aaya comment section me

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

      @Lawerence Fierst hi bot , how are you

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

      @Bryant Erick tum bhi bot ho , janta hu -_-

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

      just stopped the video after this line to see this comment

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

    Harry bhai me apki c++ ki Playlist revision ke liye dekh rha hu. this
    Playlist really awesome 👌.because I learn new concepts thank bhai 🙏🏻 🙌

  • @AkmJustStarted
    @AkmJustStarted 2 роки тому +5

    Great course!!
    I really appreciate it what are u doing for us

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

    8:06 -- it throws an error......love your teaching bhaiya

  • @jaspreet15
    @jaspreet15 Рік тому +3

    Amazing videos sir
    Starting mein oops krte time problem arhi thi hard lg raha tha
    But practice and revision se ab easy lg raha hein oops 😊
    Thanks for the quality content sir❤️

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

    Thanks a lot bhaiya........!! You are the best teacher ever I know and have had been studied from.....Thanks a lot..!!

  • @gauravsrivastava5947
    @gauravsrivastava5947 3 роки тому +6

    Dude I love your c++ series ❤️ Thank You 🤗

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

    19:11 Yes these videos are really so much helpful for us.. Thank u so much Harry Bhaiyya!

  • @rupesh_1908
    @rupesh_1908 3 роки тому +6

    Intresting lectures..... Top level content ❤️❤️❤️🎉🎉

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

    Sir bahot maza aa rha h bss thodi confusion ho jaati h agar ek doubt session aap C++ ka rakh lenge toh bahot help ho jayegi
    Thank You for making this playlist

  • @piyushjain8340
    @piyushjain8340 3 роки тому +13

    very good and interesting lectures on c++ , these type of teachers help students to learn new skills with fun . Thanks harry bhaiya.

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

    The most interesting and knowledge full videos on the whole internet i think

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

    Damn am looking forward to finishing this series and learn Java and python also from you sir . Damn your videos increases my curiosity to learn more and more

  • @ronakmaniya2005
    @ronakmaniya2005 5 місяців тому +1

    Harry bhai the course you gives us is very helpful. Thank you so much to help us. 😇

  • @Hadi-th5jc
    @Hadi-th5jc 3 роки тому +3

    I don't like the way how my college sir explain c++
    But i like the way how harry bhai teaches us ❤️

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

    Thank you so soooooooooo much sir.Really best Teacher in the world for programming.... Thank you sir for your selfless work .

  • @aishwaryadwivedi5150
    @aishwaryadwivedi5150 4 роки тому +10

    The concepts are getting even more clear by following your C++ videos.
    The videos are really very helpful.

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

    sir your video's are great and i learn cpp from your content because the way you teaches is excellent and i enjoying this cpp course

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

    call kar liya complex ko 😂you are best teacher 🤞keep it up bro

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

    it is really very helpful for me in my tech career so thank so much for giving the best contant of c++

  • @shubhambara5444
    @shubhambara5444 4 роки тому +8

    Love your way of explaining complex things so easily...
    Keep up the great work..🙂🙏

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

    Learning and enjoying the same time , I have never experienced it before
    Thank you so much bhaiya

  • @nikhilsrivastava311
    @nikhilsrivastava311 4 роки тому +21

    8:00 Error dega :- one closing parenthesis, private member access out of the class

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

    your teaching is very much usefull and easy to understand with the daily life examples you give.

  • @shivamchansoriya4460
    @shivamchansoriya4460 3 роки тому +6

    Great work Harry bhaiya ❤️ your videos are so easy to understand & the way you teaches is incredible🔥🔥🔥, you have made C++ language so effortless to learn. Thanks for providing this course at free of cost.

  • @ABHISHEKMISHRA-ew7fm
    @ABHISHEKMISHRA-ew7fm Рік тому

    sir bohot accehse se samjhate ho sarre topics ...thanks a lot !!!!

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

    I am really enjoying the course and the way you are making us understand the concepts is extraordinary.

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

    Analogy ki wajah se samjha friend function, kudos bruh🙏🙏👍

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

    [8:00] Code mein error aayega ..... kyunki harry bhai ending parenthesis lagana bhul gaye hain

  • @26_ds_reetikajadhav32
    @26_ds_reetikajadhav32 2 роки тому

    sir, the way you explain its just gets fit in my mind for forever. mujhe koi sotey hue bhi puche na to bhi batadu... sir you are just great... how to thank you sirr .... you make every method so easy.. i m loving it and i bet sir u i will finish this whole playlist and will learn everything you explain.🙂

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

    8:00 Error. 2 wajah se. Pehli to ye ki aap private member ko access krne ki koshish kr re. Or dusri baat ye ki line 23 p 1 closing parenthesis missing h.

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

      At 5:22 why we cannot able to write direct object of complex class instead of writing o1 and o2 so that we can write c1 and c2 , what is major difference bro reply asap

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

      @@harcharansingh1997 Likh to skte h. Lekin vaise likh dete to friend function ka use hi kya hua.

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

    loving series sir ji helping a lot thankyou.................THANKS BHAIYA...

  • @eshansharma9458
    @eshansharma9458 4 роки тому +8

    7:56:
    error:
    a and b are private members

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

    These vedios are very helpful to learn cpp. Thank you .

  • @swatikeshrwani831
    @swatikeshrwani831 4 роки тому +7

    (error aayega ,kyuki complex class ka a and b private function h)

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

    Really awesome video!
    Can not stop myself from commenting.
    isse kehte hain study with fun.

  • @user-dn4bv4iw6z
    @user-dn4bv4iw6z Рік тому +3

    me jinda hu

  • @SACHINKUMAR-ye8dc
    @SACHINKUMAR-ye8dc 2 роки тому

    its really detail course i know c++ coding but this opps concept is really great

  • @ABHISHEKKUMAR-bv2zt
    @ABHISHEKKUMAR-bv2zt 3 роки тому

    when i started i hv kind of got bored ,but now its becoming my habits,thanks to harry bro

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

    thank you sir bahut shandar padhaya hai aapne c++

  • @MuhammadRizwan-ph7uv
    @MuhammadRizwan-ph7uv 7 місяців тому

    you are very nice person and intellectual persons.

  • @RAHULGOSWAMI-kw9fp
    @RAHULGOSWAMI-kw9fp Рік тому

    If you are clear with same topic then harry is great otherwise very difficult to understand.

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

    Awesome explanation bhaiya ❤
    Experiencing the capability of stroutup's work and computers

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

    Sir the way you are making things easy are really amazing and we are learning C++ with fun😍😍.

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

    i dont think someone can explain this with more fun and dedication

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

    course is very helpful and useful harry bhai.14:50 is funny 🤣😂🤣😂.

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

    Sir best explanation bhut easy way mai clear krvate hai❤🎉

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

    The course was really helpful so far. I am sticking still these days

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

    Harry bhai nice, acchha lagta hai jab aapki ki video dekhate hai aur bhai bahut knowledge bhi milta hai , nice bro👍

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

    thoda ajeeb likh diya maine XD ...... this is why i learn coding from u. beautiful manner of teaching with analogies and u make it fun to learn.

  • @Uzairkhan-dv6hz
    @Uzairkhan-dv6hz 9 місяців тому

    Bahut badia Teaching method hai Harry Bhaia ap ka. Keep it up👍

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

    Sir aapke example se friend function clear ho gya🎉🎉

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

    Sir aapki har aek information hamari curiosity ko satisfy karati hai

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

    sir really your videos are very helpful for me.May Allah bless you.Thank you so much sir

  • @ayush-kumar-official
    @ayush-kumar-official 2 місяці тому

    Declaration can be done anywhere ie private or public section but that doesn't means that we are making it private or public

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

    I'm feeling happy sir, ur explanation is excellent.

  • @Error7Easin
    @Error7Easin 7 місяців тому

    Very Helpful
    Thank You Brother lots of love
    💌
    Love from Bangladesh

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

    bhai complex or sum complex wali jo story boli bhai or jo explanation diya bhai maza aya gaya thx you so much sir for this vidoes

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

    Yeh video bahut accha laga aur yeh course se mera toh bahut fayd hua hai bhaiya maja agaya :) :)
    Thank you bhaiya 🙌🙌🙌🙌🙌🙌