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 RU-vid 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 😇✌️
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 ✌😇
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.
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?
Can a friend function declaration prototype be declared with no return type? friend Rectangle duplicate (Rectangle & rect1, Rectangle & rect2); duplicate (foo, bar);
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.
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 :-)
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
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