Friend Function in C++ Part 1 | C++ Tutorial | Mr. Kishore
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
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
Ok
Thank-you sir, had a great experience and I'll also recommend your page to my "FRIENDS" ;).
All lectures of this channel are awesome👌👌also teachers tooooo much knowledgeable 👌every concept get cleared quickly 👌🙏🙏thanks a lot sir 🙏
U r my c++ guru sir...thank u so much.🤗🤗
I like the way you explain, you give the real and well foundation of understanding friend function..
u''ve got a great skill of teaching
First time I got interest on computer science and I'm listening ur videos to score in my xams thank u sooo much sir..
Thank u sir ......love from Bangladesh
Wonderfully example
This is very helpful..thankyou so much
very detail explanation.
thank you.
Clear n brief explanation tnk u sir;
Best teacher so far❤️
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
These videos are helpful. Is there any video around there about C++ linked list?
great ................finalyy i understand concept of friend function
explanation super sir really i liked it and learned a lot
You are GEM SIR , Thank YOU for the amazing explanation :)
every concept get cleared quickly
Sir this video is very very helpful .... specially d exams tym ..... .... 🙏🙏 Thnq so much. ....Ur teaching skills r fabulous 👌👌
mam in which company you are placed
Sir u teaching is awesome love so much sir
easy explanations 😌hats off to you🤝
Your explanation is awesome
fantastic teacher!
You are amazing sir thank u so much sir
Very well explained
Nice friend analogy .
Thank you so.much sir.....
Very Informative Video
Good bro keep going i love ur ascent
Awesome Sir
mobile example was awesome!!!!!!!!
Thankyou so much sir....
Thank You, Sir.
Super example sirr
Thankyou so much sir♥️
Amazing explanation
This videos helps a lot .
Thank u so much sir
Keeping doing these type of videos sir
Please explain with character pointer instead of int. If it is a pointer how it allocate memory
good explanation sir
awesome explantaion
Don't thank us, rather, thanks to you...
Awesome!
i like ur tutorial
Grt video love the way yoy teach sir
*you
Thnk u sir..
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
thank u so much sir
Thank u so much sirrr
Very nice sir
It is very useful
Sir plz upload about inline function in cpp
Upload Friend function next session sir
Don't try to pass the object as the function argument, Use object refernce in the function definition to access the values
I too have same doubt..thanks bro
why?
@@GULLAPUDILIKITHBCE You VITan ?
@@boombeachnoob3642 yes
He is going to discover friend function. 0:22
discovery was awsome.
Super sir👍👍
Thank u sir
Friend function can declare eigther in private or a public part of the class 🙂
can a friend function be created without using constructor????
Can u upload a vedio for inline function
thanks sir
#include
#include
#include
using namespace std;
class test2;
class test1
{
int a;
public:
void get1()
{
cout
we cant pass user defined functions as arguments?
13:02 sample is class name but not object right!!
yes
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?
friend function should define in public section
sir u didn't used access specifier ..y?
don't need........?
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
sir ..if you can come my college as a sir ....
Hello sir, why virtual constructor not possible???
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
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......
When I run your code always error . Why??
ur code didnt compile
no too many functions, only one fask. Means frnd function
you are declaring function outside, why not using class name followed by scope operator.
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!
my doubt : sir when we are defining this friend function why we are not using the scope resolution operator
Because friend function is not a member function of the class.
Because it is not a member function of that class
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
Real
never do this print(sample s)... it should be print(sample& s)...... U WILL GET INTO trouble
Why ?
@@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)->
@@merajsyed6987 thnx 👍
Sir, you explain well but can you speak in Hindi
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 !
Friend .!