Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌
Hehe thanks buddy. I'm glad you liked this video. Well about the other teachers, everyone's got different styles, can't really blame them anymore especially now when you have other options like this UA-cam video and many others resources online 😉 BTW I also have an article on our official website on this topic if you want to prepare answer ✌️ Link in the description 😇
Well done bro. I’ve gone through friend function with my lecturer about 5 months ago and got nothing but now I’m here be able to use friend function clearly. Thanks a lot and always support you and your videos.
You have a great talent ...your videos will be universally viral .. Your way is simple. Your english is awesome.. You are really a good teacher.. Just keep on making video... My first earning after i will become app developer will be to you and saurabh shukla sir...(my sirg).....😍😍😍
Thank you so much buddy🙏 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
Thank you so much for such a positive feedback. I'm glad this will be helpful for your exam. Please share this with your friends too as even they will get help from this 😇 Ohh and all the best 😇✌️
Thank you so much Selva. Glad to hear this from you. :-) Please do share the videos with your friends too & hope you have subscribed. Thats the biggest help and support you can provide :-)
Yes definitely, infact in a recent video where I updated all channel subscribers, I said I will be covering 3 subjects on priority and asked for suggestions. The 3 subjects are Core Java, DS with C++ and C# .NET. So yes Data structures will soon be covered completely on the channel ✌😇
One thing does not make sense to me, and that's something I've seen being done in every "friend function tutorial"... WHY do you put the friend function in the public section of the class? Isn't that redundant, as a public function can be accessed "publicly" (just like the 'get' and 'set' methods)?? Would the code still work if you were to put the public function in the private section?
me too try this out , it will work tho.. #include using namespace std; class test{ private: int data1,data2; public: test(); //Default Constructor test(int a , int b){ //Parameterised Constructor which is Constructor with arguements data1 = a; data2 = b; } void display(); friend void multiply(test); //Friend Function (doesnt matter where you initialize it) }; //End of class void test::display(){ cout
@@paramgill2712 I'm glad it helped. You can declare it with lower case, but it may not work in some compilers as the convention is to start with a capital letter. The conventions were created to make it easier on others to read and understand your code.
Good lecture. I am getting an error when I implement your program. It is: error: 'int Distance::meters' is private. What does this mean. I cannot run the program. Also, I have to use #include and getch() to see a result, otherwise the output screen pop up and vanishes. Does not stay like your output screen. Do you know how I can get a output without this. My program is written below: Thanks #include #include using namespace std; class Distance { private: int meters; public: Distance() { meters=0; } void displayData() { cout
So, what else does a friend function do, aside from being able to access private elements? I'm not sure what else the friend function did in the main() function.
Can a friend function declaration prototype be declared with no return type? friend Rectangle duplicate (Rectangle & rect1, Rectangle & rect2); duplicate (foo, bar);
Well in the video things worked out without errors isnt it ? So IDK how come you are getting so many errors 😅 Check the video description for the full code and cross check it again maybe ✌
@@himanigulati6922 I don't debug others code so don't expect me to solve your queries and errors, but still you can DM me via our Instagram page - instagram.com/simplesnippets Or mail me at - simplesnippetsinfo@gmail.com
Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌
plz make a video lecture on "COMPOSITION IN C++"
Okk sir
But sir screen is not visible clearly
Great Lecture bro. IDK why my teachers can't teach so well. He just comes in the class with slides and just literally reads out the slides.
Hehe thanks buddy. I'm glad you liked this video. Well about the other teachers, everyone's got different styles, can't really blame them anymore especially now when you have other options like this UA-cam video and many others resources online 😉
BTW I also have an article on our official website on this topic if you want to prepare answer ✌️
Link in the description 😇
Same
Well done bro. I’ve gone through friend function with my lecturer about 5 months ago and got nothing but now I’m here be able to use friend function clearly. Thanks a lot and always support you and your videos.
Glad I could help! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
Your explanations are so clear. Thanks !!
you are the best..........masum
Thank you! This is an amazing explanation - the friend keyword always confused me, and now I finally understand it!
Absolutely great videos that have helped me pass my C++ at university, great stuff bro
Oh that's amazing to know. Please do share the videos with your friends and juniors too. It might help them as well 😊
You have a great talent ...your videos will be universally viral ..
Your way is simple.
Your english is awesome..
You are really a good teacher..
Just keep on making video...
My first earning after i will become app developer will be to you and saurabh shukla sir...(my sirg).....😍😍😍
Thanks Neeraj, your comments and support means a lot to me 😇
Do let me know about your app as well. Surely will be happy to know about it 😊
@@SimpleSnippets ya sure sirr
Great help when exams are coming
Thank you sir
No words to say .... fabulous video
a good tutorial i build this program on codeblocks so their is no error it runs successfully and gives the out put same like your
Superb explanation!
The way you teach is so simple and much easier to understand.
Thank you so much buddy🙏 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
crystal clear explanation bro
Explained it so well , thank you!
Glad it was helpful!
GOD level teaching
Thanks brother...
Nice explanation...🙂
Welcome 😊Please support me by sharing our videos with your friends too bro ✌
Amazing tutorial,good job sir :)
very good teacher. really appreciate.
craaa gl baat!👌
thanks you! this lecture cllears my doubt.
Glad to hear that!
Because of you I would get get good marks in cs..Thank you😊
Thank you so much buddy. You really made my day by this comment 😇🙏
Means a lot to me. Do share the videos with your friends too ✌️
very simple and easy way of explanations!!
it all clear my doubts about friend function thank you boss!!
That's amazing to know Sunny 😇 thanks for this wonderful feedback. Please do share the videos with your friends too 👍
Great explanation
you are superb bro.......
Outstanding bro
That was great and wonderful explaination from scratch.. well done bro👍👍👍
Loved this🧡♥️
Thanku sir, great explanation 👌
thank you very much for this video! i had a question on my college test asking this
can you also explain what is a client class? id be pleased
Thank you sir. The explanation was nice and I can understand them easily.
Thank you very Much sir
Those who do not know about the access specifiers (public,private,protected). first watch that video and then come here. for better understanding!!
Really excellent it is helpful for tomorrow's exam thank you for this
Thank you so much for such a positive feedback. I'm glad this will be helpful for your exam. Please share this with your friends too as even they will get help from this 😇
Ohh and all the best 😇✌️
Tanq
God bless you,so much honour and likes 🤩from Pakistan🇵🇰🇵🇰
Actually we declare void Distance::addValue {} if we want to access outside class ...C++ is so confusing. nice explanation..
😍all videos👌
Nice work bro !
Thanks bro ✌️
Explanation level 999!💥😅
Thanks bro ♥️
Ur amazing bro❤
Thank you so much Selva. Glad to hear this from you. :-)
Please do share the videos with your friends too & hope you have subscribed. Thats the biggest help and support you can provide :-)
I loved ur explanation ❣️
Thank you so much bro, Please do share the videos with your friends too bro. That will be the biggest help & support 😇
Pever💥
Thank you
#include
using namespace std;
class distance{
private:
int meter;
public:
distance(){
meter = 0;
}
void disp(){
cout
@muhammed sahad ibn abdul samad same problem.. found any solution?
Change your class name to Distance or something else bcoz your current class name 'distance' is clashing with another symbol from namespace
@@akashshaw1594 thank you sm! this helped!!:)
Tomorrow I have practical exam helped me understand
Thats great to know buddy, please do subscribe& share the video with your other friends too :-) 😇
great bro!!
Keep Uploading🙌🙌
Thank you so much brother 😇
I would request you to please share the video with your friends and contacts 😇
@@SimpleSnippets definitely bro!!
Thank you so much bro 👍
How you speak flowly👌🏻
Will you make tutorials with data structures like stacks, binary tree and SLL or DLL?
Yes definitely, infact in a recent video where I updated all channel subscribers, I said I will be covering 3 subjects on priority and asked for suggestions. The 3 subjects are Core Java, DS with C++ and C# .NET.
So yes Data structures will soon be covered completely on the channel ✌😇
Thanks
You're always welcome. Do share the videos with your friends and contacts :-)
I'm currently not working so I am not in a position to donate as of now but the least I can do is to watch ads.
You don't have to donate ever 😊 but please keep sharing our channel & videos with your friends. That's the biggest help & support you can provide 👍✌️
Keep it up👍
Thank you so much, please do subscribe and share the video with your friends too. Thats the biggest help and suport you can provide in return😇
please make a video on "this" pointer in c++. And you are aswesome!!
**awesome!!
Okay buddy I'll make a video on this topic soon ✌️
Good video
Thank you :-)
like the intro bro
Thats great to hear buddy, Please do subscribe and share our channel with your friends too! Thats the biggest help and support 😇
Out of curiosity, how does your visual studio look so old? I actually like that classic look
Which software u have used for code
Dev C++
Why passing d1 argument in addValue function.
Best indian guy ever
Haha thanks buddy, highly obliged to have such a title ❤😇
cout
Super bro
i didnt understand what does that (distance &d); mean..can someone explain??
In program I got a error -
Void addValue function is showing error saying - reference to Distance is ambitious.
Ambiguous*
same here did you get solution
One thing does not make sense to me, and that's something I've seen being done in every "friend function tutorial"...
WHY do you put the friend function in the public section of the class?
Isn't that redundant, as a public function can be accessed "publicly" (just like the 'get' and 'set' methods)??
Would the code still work if you were to put the public function in the private section?
We need to access private data of a class that's why
i am having an error. when i defined the addvalue function, it showed that reference to distance is ambiguous. please help
me too
try this out , it will work tho..
#include
using namespace std;
class test{
private:
int data1,data2;
public:
test(); //Default Constructor
test(int a , int b){ //Parameterised Constructor which is Constructor with arguements
data1 = a;
data2 = b;
}
void display();
friend void multiply(test); //Friend Function (doesnt matter where you initialize it)
};
//End of class
void test::display(){
cout
Make the first letter of the class name capital
@@ashishkatyal it worked thankks, but can u explain why so?
@@paramgill2712 I'm glad it helped. You can declare it with lower case, but it may not work in some compilers as the convention is to start with a capital letter. The conventions were created to make it easier on others to read and understand your code.
@@ashishkatyal thanks buddy it worked :-)
Hai bro , I want to learn component object modeling in C++ . Do you have any video tutorials for that. Or just give me suggestions for how to begin.
Sir can you kindly provide vedios on dynamic data structures in c++
Nice 🤤, thanks
Sir what is the use of & symbol why we are using it
Hi. Do u need to pass the ostream “cout ” to displayData function in your class?
Can we have a friend class as well to access private members just like the friend functions?
isn't the friend function declared inside the class , sir ??
Good lecture. I am getting an error when I implement your program. It is:
error: 'int Distance::meters' is private. What does this mean. I cannot run the program. Also, I have to use #include
and getch() to see a result, otherwise the output screen pop up and vanishes. Does not stay like your output screen. Do you know how I can get a output without this. My program is written below: Thanks
#include
#include
using namespace std;
class Distance
{
private:
int meters;
public:
Distance()
{
meters=0;
}
void displayData()
{
cout
Change the return type from void to int , for the friend function it should work
@@internetzz2322 Still same problem
So, what else does a friend function do, aside from being able to access private elements? I'm not sure what else the friend function did in the main() function.
Plz upload a video about dynamic variables (pointers) 🥺🥺🥺
I already have that in this C++ programming playlist. Do check it out :-)
Love from pakistan🖤
Thanks buddy, I'm glad to hear this. Please do share the videos with your friends too. That's the biggest help and support you can give back to me 🙏😊
Can a friend function declaration prototype be declared with no return type?
friend Rectangle duplicate (Rectangle & rect1, Rectangle & rect2);
duplicate (foo, bar);
I am facing an error when i compile and run the code i.e reference to 'distance' is ambiguous
Guys Mara final paper ha oop ka or kuch ata e ni abi tk , ab ma try kr ry hyn k prepare ho jy please dua kryn Mary liy
U r top good
Thanks Aman😊 glad to hear this feedback bro ✌️
Friend is declared inside the class
what are you studying now bro
The next topic that I have to make video on 😜 (Data structures and algos basically)
how this program runs in the line 12 the variable name is meter but in the privat its meters ? i expected and error but ok
I guess you werent watching the video
cant we name the constructors with a name different than the class??
Nope✌
Plz explain a bit about friend classes as well
i hope i can make a request after all there is a specific quota for "ON DEMAND VIDEOS"😊🤗
Definitely, I'll create one video on this topic for sure 😇
And yes there is always an on demand option for all of viewers and subscribers 😇✌️
Thnx for ur attention on my small request🤗🤗
Kindly try to make my requested video before 16 may
after all i need your help for my exam🙂🙂
I will try to post this video by day after tomorrow 😇✌️
Thnx alot once again
working like that will definitely make one to pray for u😊😊
bro can you clear my doubt- what is function of cpp
I have a video on this topic too!
@@SimpleSnippets ok😊
Which IDE are you using?
Dev C++ IDE
levellllllllllllllllllll
Sir please explain slowly,we canot move with your speed
Agreed, I will make sure to go slow in future. Sorry for the inconvenience
i think your speed is pretty good , i watch your vids at 1.8 speed
"nice intro" - no one
i am gettin so many errors. although i have written the exact same code!
Well in the video things worked out without errors isnt it ? So IDK how come you are getting so many errors 😅
Check the video description for the full code and cross check it again maybe ✌
@@SimpleSnippets can i send you the error its showing somewhere else?
@@himanigulati6922 I don't debug others code so don't expect me to solve your queries and errors, but still you can DM me via our Instagram page - instagram.com/simplesnippets
Or mail me at - simplesnippetsinfo@gmail.com
Sir what is your qualification ????☺
I completed my post grad - masters in computer applications a year back! MCA ✌️
Although I don't think qualifications matter 😛
explain in Hindi also
It will be greatful if u a create watsapp grp
bro take it easy data you have but you are too fast
very poor explanation first get advanced and learn how to use vs code.
thanks
Welcome
thank you