Friend Function in C++ Part 1 | C++ Tutorial | Mr. Kishore

Sdílet
Vložit
  • čas přidán 12. 04. 2017
  • C ++ Tutorial Videos | Mr. Kishore
    ** For Online Training Registration: goo.gl/r6kJbB ► Call: +91-8179191999
    💡 Also Watch
    C Language Tutorials: goo.gl/qDhJ2r
    Core Java FAQ's: goo.gl/qGh5mA
    Core Java Tutorials: goo.gl/NbaEge
    Java Programming Tutorials by Mr.Hari krishna:
    goo.gl/HThq6H
    Advanced Java Programming Tutorials by Mr.Nataraj:
    goo.gl/1U2Qgy
    Subscribe to our channel and hit the bell 🔔🔔🔔 icon to get video updates.
    💡 Visit Our Websites
    For Classroom Training: nareshit.in/cpp-training/
    For Online Training: nareshit.com/c-online-training/
    #JavaCollectionsFramework #Tutorials #Videos #corejava #Quiz #Clanguage
    --------------------------
    💡 About NareshIT:
    "Naresh IT is having 14+ years of experience in software training industry and the best Software Training Institute for online training, classroom training, weekend training, corporate training of Hadoop, Salesforce, AWS, DevOps, Spark, Data Science, Python, Tableau, RPA , Java, C#.NET, ASP.NET, Oracle, Testing Tools, Silver light, Linq, SQL Server, Selenium, Android, iPhone, C Language, C++, PHP and Digital Marketing in USA, Hyderabad, Chennai and Vijayawada, Bangalore India which provides online training across all the locations
    --------------------------
    💡 Our Online Training Features:
    🎈 Training with Real-Time Experts
    🎈 Industry Specific Scenario’s
    🎈 Flexible Timings
    🎈 Soft Copy of Material
    🎈 Share Videos of each and every session.
    --------------------------
    💡 Please write back to us at
    📧 us.training@nareshit.com/ 📧 online@nareshit.com or Call us at the USA: ☎+1404-232-9879 or India: ☎ +918179191999
    --------------------------
    💡 Check The Below Links
    ► For Course Reg: goo.gl/r6kJbB
    ► Subscribe to Our Channel: goo.gl/q9ozyG
    ► Circle us on G+: plus.google.com/+NareshIT
    ► Like us on Facebook: / nareshit
    ► Follow us on Twitter: / nareshitek
    ► Follow us on Linkedin: goo.gl/CRBZ5F
    ► Follow us on Instagram: goo.gl/3UXYK3

Komentáře • 100

  • @NareshIT
    @NareshIT  Před 5 lety +9

    Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL

  • @pratiksinghmalik7920
    @pratiksinghmalik7920 Před 6 lety +23

    Thank-you sir, had a great experience and I'll also recommend your page to my "FRIENDS" ;).

  • @tejashreesawant9555
    @tejashreesawant9555 Před 3 lety +7

    All lectures of this channel are awesome👌👌also teachers tooooo much knowledgeable 👌every concept get cleared quickly 👌🙏🙏thanks a lot sir 🙏

  • @gorrepatimadhu6025
    @gorrepatimadhu6025 Před 4 lety +6

    U r my c++ guru sir...thank u so much.🤗🤗

  • @thomaskipkemeituitoek949
    @thomaskipkemeituitoek949 Před 7 lety +3

    I like the way you explain, you give the real and well foundation of understanding friend function..

  • @ahadsun1188
    @ahadsun1188 Před 4 lety +5

    u''ve got a great skill of teaching

  • @alekhyareddy4624
    @alekhyareddy4624 Před 3 lety +1

    First time I got interest on computer science and I'm listening ur videos to score in my xams thank u sooo much sir..

  • @ahmednafiunoman5040
    @ahmednafiunoman5040 Před 5 lety +6

    Thank u sir ......love from Bangladesh

  • @shashank6803
    @shashank6803 Před 6 lety +6

    Wonderfully example

  • @uputoorikishore9548
    @uputoorikishore9548 Před 6 lety +1

    This is very helpful..thankyou so much

  • @asaduzzaman3680
    @asaduzzaman3680 Před 5 lety +1

    very detail explanation.
    thank you.

  • @abufaya4155
    @abufaya4155 Před 5 lety +1

    Clear n brief explanation tnk u sir;

  • @Blaze-vk3sj
    @Blaze-vk3sj Před 2 lety +1

    Best teacher so far❤️

  • @charless3440
    @charless3440 Před 6 lety

    Thank you sir super and clear class sir I am not understand mam teaches in my class but I can able to understand your teaching sir thank you sir

  • @swivtras9966
    @swivtras9966 Před 5 lety +2

    These videos are helpful. Is there any video around there about C++ linked list?

  • @HistoricalHorizons304
    @HistoricalHorizons304 Před 5 lety

    great ................finalyy i understand concept of friend function

  • @chintajayaprakash5590
    @chintajayaprakash5590 Před 6 lety

    explanation super sir really i liked it and learned a lot

  • @deveshnandan323
    @deveshnandan323 Před 6 měsíci

    You are GEM SIR , Thank YOU for the amazing explanation :)

  • @hemantbagul9830
    @hemantbagul9830 Před rokem

    every concept get cleared quickly

  • @sheetalgupta8481
    @sheetalgupta8481 Před 5 lety +3

    Sir this video is very very helpful .... specially d exams tym ..... .... 🙏🙏 Thnq so much. ....Ur teaching skills r fabulous 👌👌

  • @shiva1147
    @shiva1147 Před 4 lety

    Sir u teaching is awesome love so much sir

  • @simracingexe
    @simracingexe Před 2 lety

    easy explanations 😌hats off to you🤝

  • @amarmohamed3766
    @amarmohamed3766 Před rokem

    Your explanation is awesome

  • @katrinejensrud537
    @katrinejensrud537 Před 3 lety

    fantastic teacher!

  • @iniyaviji2796
    @iniyaviji2796 Před rokem

    You are amazing sir thank u so much sir

  • @mageswari9682
    @mageswari9682 Před rokem

    Very well explained

  • @EasyMathematics01
    @EasyMathematics01 Před 2 lety

    Nice friend analogy .

  • @dipeshrana1719
    @dipeshrana1719 Před 6 lety +1

    Thank you so.much sir.....

  • @asiminamdar7981
    @asiminamdar7981 Před 2 lety

    Very Informative Video

  • @rakshitmandilwar2817
    @rakshitmandilwar2817 Před 4 lety

    Good bro keep going i love ur ascent

  • @TechnicalKaifOfficial
    @TechnicalKaifOfficial Před 5 lety +1

    Awesome Sir

  • @sriharip9899
    @sriharip9899 Před 3 lety

    mobile example was awesome!!!!!!!!

  • @memehhme
    @memehhme Před 2 lety

    Thankyou so much sir....

  • @shhhahil
    @shhhahil Před 3 lety

    Thank You, Sir.

  • @aryanraghu5344
    @aryanraghu5344 Před 6 lety +1

    Super example sirr

  • @pe_P
    @pe_P Před 3 lety

    Thankyou so much sir♥️

  • @salmanfaries3064
    @salmanfaries3064 Před 3 lety

    Amazing explanation

  • @mshanmukhavalli4567
    @mshanmukhavalli4567 Před 5 lety +2

    This videos helps a lot .
    Thank u so much sir
    Keeping doing these type of videos sir

  • @rajeshmandalapu6876
    @rajeshmandalapu6876 Před 5 lety

    Please explain with character pointer instead of int. If it is a pointer how it allocate memory

  • @ARGaming-nj8bw
    @ARGaming-nj8bw Před 7 lety

    good explanation sir

  • @siddharthdangwal6174
    @siddharthdangwal6174 Před 2 lety

    awesome explantaion

  • @bengalisareeshubstore3633

    Don't thank us, rather, thanks to you...

  • @PainDive1
    @PainDive1 Před 6 lety

    Awesome!

  • @yontenwangchuk1133
    @yontenwangchuk1133 Před 7 lety +1

    i like ur tutorial

  • @rohitchandak6604
    @rohitchandak6604 Před 4 lety +2

    Grt video love the way yoy teach sir

  • @sulekhaprajapati6891
    @sulekhaprajapati6891 Před 6 lety +1

    Thnk u sir..

  • @bishwajeetpandey1570
    @bishwajeetpandey1570 Před 5 lety +1

    I think it is not against data hiding concept becoz if we not allow deceleration of friends function in class then function can not acces private data members of that class so to use private data friend functon must authorised by class .
    ....
    If i m wrong clear it plzz

  • @manishkanna532
    @manishkanna532 Před 6 lety

    thank u so much sir

  • @ridewithuday203
    @ridewithuday203 Před 5 lety

    Thank u so much sirrr

  • @sanjaymahli7772
    @sanjaymahli7772 Před 2 lety

    Very nice sir

  • @localboyentry6892
    @localboyentry6892 Před 4 lety

    It is very useful

  • @polytechbadi8591
    @polytechbadi8591 Před 6 lety

    Sir plz upload about inline function in cpp

  • @viswanathgupta7406
    @viswanathgupta7406 Před 7 lety +1

    Upload Friend function next session sir

  • @balajimutyala798
    @balajimutyala798 Před 4 lety +7

    Don't try to pass the object as the function argument, Use object refernce in the function definition to access the values

  • @abhinavgupta7188
    @abhinavgupta7188 Před 4 lety +4

    He is going to discover friend function. 0:22

  • @baindlanareshnaresh3315

    Super sir👍👍

  • @nirmaladamu8593
    @nirmaladamu8593 Před 6 lety

    Thank u sir

  • @user-kr6jn5bp5p
    @user-kr6jn5bp5p Před 2 lety

    Friend function can declare eigther in private or a public part of the class 🙂

  • @asgerali1111
    @asgerali1111 Před 2 lety

    can a friend function be created without using constructor????

  • @yaminiraveendran1
    @yaminiraveendran1 Před 5 lety

    Can u upload a vedio for inline function

  • @tuliprubina9956
    @tuliprubina9956 Před 4 lety

    thanks sir

  • @amitkumargupta6722
    @amitkumargupta6722 Před 4 lety +1

    #include
    #include
    #include
    using namespace std;
    class test2;
    class test1
    {
    int a;
    public:
    void get1()
    {
    cout

  • @GULLAPUDILIKITHBCE
    @GULLAPUDILIKITHBCE Před 2 lety

    we cant pass user defined functions as arguments?

  • @Sridhar-mm6wl
    @Sridhar-mm6wl Před 4 lety +3

    13:02 sample is class name but not object right!!

  • @asgerali1111
    @asgerali1111 Před 2 lety

    i pasted the same code in visual studio but the code shows an error when i change access modifier from public to private.... can anyone help me out?

  • @sachins4185
    @sachins4185 Před 5 lety

    friend function should define in public section

  • @mohan5e396
    @mohan5e396 Před 4 lety +3

    sir u didn't used access specifier ..y?
    don't need........?

    • @sjenku250
      @sjenku250 Před 4 lety +1

      if you don't specify access specifiers, the class automatically specify data members and function members as "private"...and about the "friend function"...friend function not member function of the class..it's mean this function can be defined in any place in your program...therefore you don't need to specify which type of access to the friend function

  • @amalfrancis4846
    @amalfrancis4846 Před 6 lety

    sir ..if you can come my college as a sir ....

  • @mschaudhari6174
    @mschaudhari6174 Před 6 lety

    Hello sir, why virtual constructor not possible???

    • @stctuts9415
      @stctuts9415 Před 6 lety

      because virtual functions are made for overridden means it works for child class not for their own class. but constructors are only made for their class. so it can not be virtual.
      clear your concepts from our channel - STC Tuts

  • @amitkumargupta6722
    @amitkumargupta6722 Před 4 lety

    The only error in this program is found is that...we must declare the class test2 before we use in the class test1 with friend function......here my code is given below for it......

  • @bunlong5760
    @bunlong5760 Před 4 lety

    When I run your code always error . Why??

  • @hrroopesh5722
    @hrroopesh5722 Před 5 lety +2

    ur code didnt compile

  • @viraj_plus
    @viraj_plus Před 5 lety

    no too many functions, only one fask. Means frnd function

  • @aryanomar7439
    @aryanomar7439 Před 6 lety +1

    you are declaring function outside, why not using class name followed by scope operator.

    • @dhananjaypanage2472
      @dhananjaypanage2472 Před 5 lety +2

      Because it's a friend functions it does not belong to any class, so we don't need to use class name and scope resolution operator preceding it!

  • @vivekdhiman3675
    @vivekdhiman3675 Před 4 lety

    my doubt : sir when we are defining this friend function why we are not using the scope resolution operator

    • @SkSingh-xf3ck
      @SkSingh-xf3ck Před 4 lety +2

      Because friend function is not a member function of the class.

    • @mounikanayikoti2393
      @mounikanayikoti2393 Před 3 lety

      Because it is not a member function of that class

  • @jeyanthnallathambihospital2208

    Hi sir
    I known only Tamil so I want Tamil explaination sir .so I can't understand.plz convert into Tamil,English,Hindi,Malayalam and hindi.because we are school students

  • @merajsyed6987
    @merajsyed6987 Před 5 lety +2

    never do this print(sample s)... it should be print(sample& s)...... U WILL GET INTO trouble

    • @vsarts1967
      @vsarts1967 Před 4 lety

      Why ?

    • @merajsyed6987
      @merajsyed6987 Před 4 lety +1

      @@vsarts1967 pass by reference is a good practice. Passing by values creates temporary objects and is not a good idea unless you cannot avoid passing by value. Write some program to update an object inside a function. If u pass by value then the temp object gets updated and not the actual object.
      class sample{
      public:
      int a;
      int b
      }
      void updatesample(sampe& s)->pass b reference ( no temp object created, actual object gets updated)
      void updatesample(sample s)--> pass by value (actual object wont be updated , temp objects get updated and is dangerous)
      check the address of inside printsample
      void printsample(sample &s)->
      void printsample(sample s)->

    • @vsarts1967
      @vsarts1967 Před 4 lety

      @@merajsyed6987 thnx 👍

  • @letusstudy6311
    @letusstudy6311 Před 6 lety

    Sir, you explain well but can you speak in Hindi

    • @stctuts9415
      @stctuts9415 Před 6 lety

      Learn friend function & class concept in C++ programming language
      from our channel - STC Tuts
      Easy Learning
      1. Basic Concept
      2. Deep Concept
      3. Program Example
      from our Channel.
      Visit us !

  • @swathithatikonda6722
    @swathithatikonda6722 Před 3 lety

    Friend .!