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

  Рет қаралды 82,628

Naresh i Technologies

Naresh i Technologies

Күн бұрын

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/cp...
For Online Training: nareshit.com/c...
#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.co...
► Like us on Facebook: / nareshit
► Follow us on Twitter: / nareshitek
► Follow us on Linkedin: goo.gl/CRBZ5F
► Follow us on Instagram: goo.gl/3UXYK3

Пікірлер: 44
@NareshIT
@NareshIT 5 жыл бұрын
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
@ShikhaSharma-dm3ul
@ShikhaSharma-dm3ul 6 жыл бұрын
Sir u are really very focused... U have so much knowledge which is so correct.. U never make us confused..thank u so much for becoming such a great lecturer... And sharing ur knowledge with us.. Huge respect for you sir.. God bless you
@spy18600
@spy18600 3 жыл бұрын
I have watched 3videos of you ... It's understood me a lot sir... Nice explanation sir
@karansehgal539
@karansehgal539 4 жыл бұрын
really great video sir Made the topic easy and interesting to understand You are an invaluable teacher
@dipanjansaha6531
@dipanjansaha6531 6 жыл бұрын
U R REALLY A GOOD TEACHER
@hrutikbhalerao
@hrutikbhalerao 3 жыл бұрын
Thank you so much sir . You are awesome;
@akashpatel5132
@akashpatel5132 3 жыл бұрын
Thank you so much sir 🙏
@girish1789
@girish1789 4 жыл бұрын
Sir u r really d bst teacher.
@kanchanjadhav-katake7526
@kanchanjadhav-katake7526 7 жыл бұрын
thnk u soo much sir for clearing concepts
@rejetimeghavardhan7805
@rejetimeghavardhan7805 4 жыл бұрын
Very very thanks sir
@KhushiSharma-m7h2y
@KhushiSharma-m7h2y 5 ай бұрын
thank you so much sir
@LousyPainter
@LousyPainter 6 жыл бұрын
Totally cool! Thanks.
@SanjayKumar-iu7rq
@SanjayKumar-iu7rq 4 жыл бұрын
Sir you have declared friend function in public area ,means it is just simple member function na?
@pavisv6
@pavisv6 4 жыл бұрын
Friend function is simple function and it can be declare into any access specifier. for more clear pls visit previous tutorial in this playlist.
@codenchill732
@codenchill732 4 жыл бұрын
as they are objects..! should we write operator overloading for ">"operator in the above program!
@lh6845
@lh6845 5 жыл бұрын
Clear cut explanation
@shhhahil
@shhhahil 3 жыл бұрын
Thank you.
@akshaygaigole6628
@akshaygaigole6628 5 жыл бұрын
Can we directly define another class instead of forward declaration of another class
@abeysebastian3159
@abeysebastian3159 4 жыл бұрын
NO .we need to declare the class test2 before test 1 because inside test1 class we are declaring the friend function with an argument of class test2. C code being sequentially compiled from top to bottom, will give an error if test 2 isn't declared before its object is passed as an argument in friend function.
@raviiMaurya
@raviiMaurya 2 жыл бұрын
@@abeysebastian3159 but it is C++ so is it necessary??🧐🧐
@Arabic_guy2024
@Arabic_guy2024 4 жыл бұрын
Hi, a value and b values are private here, we can't access them directly in geta() and get() functions.
@srihari2846
@srihari2846 2 жыл бұрын
get() and geta() functions are member functions of the same class so they can access the private variables without any issue
@manalisamani6729
@manalisamani6729 5 жыл бұрын
I m having ques. I dont know how to code that program Que. Write a c++ program to store 5 students details using concept of array of object. Class contain following data members: -name -roll_no -age -percentage Having function getdata(),showdata() and topper(). Topper() function find a student which has highest percentage. Topper function should be a friend function. Sir i m not getting that how i will make friend function in the above questioned program. Plz tell me that of which name i should create class and in topper function what i conditions i should put. Plz help sir . Thanks!
@amanjalhotra1393
@amanjalhotra1393 4 ай бұрын
#include #include #include using namespace std; class students { char name[20]; int roll_no; int age; float percentage; public: void getdata(); void showdata(); friend int topper(students s[], int n); }; void students::getdata() { coutname>>roll_no>>age>>percentage; } void students::showdata() { cout
@SaikrishnaBala
@SaikrishnaBala 6 жыл бұрын
if we have 10 classes then we need to pass 10 objects as a arguments in friend function ?
@elijaheinstein160
@elijaheinstein160 6 жыл бұрын
lol yeah !
@shivakarthikrathod2026
@shivakarthikrathod2026 3 жыл бұрын
See next vedio
@pavankumarreddy5302
@pavankumarreddy5302 6 жыл бұрын
In friend function part 2 How we pass argument of 2nd test in friend func declaration without intialising it before
@karanvyas3968
@karanvyas3968 5 жыл бұрын
its kind of similar to prototyping like we do with functions
@ahmadhussainsahil3408
@ahmadhussainsahil3408 4 жыл бұрын
Thank you so much sir for clear explaination.....
@rashidakhatun7437
@rashidakhatun7437 6 жыл бұрын
Thanks
@abhishekshayana8509
@abhishekshayana8509 6 жыл бұрын
excellent
@majeed854
@majeed854 7 жыл бұрын
tq kishore sir
@aqibmulla2937
@aqibmulla2937 6 жыл бұрын
Sir you not called big(t1,t2);
@elijaheinstein160
@elijaheinstein160 6 жыл бұрын
He called it at 7:00 min ... check it !
@leetchef6602
@leetchef6602 5 жыл бұрын
u have declared friend function in public??..is it correct??
@GauravKumar-ks7ms
@GauravKumar-ks7ms 5 жыл бұрын
Yes, friend function is not a member function so it can be declared as public/protected /private, it will not affect, for references go to friend function part 1 by naresh it
@karthik2728
@karthik2728 5 жыл бұрын
SIR ,WHY SHOULD WE DECLARE CLASS TEST2 AS GLOBALLY??
@mr_rawat
@mr_rawat 3 жыл бұрын
Coz we r goinf to use its object in the friend function before defining it.. That's why we r declaring it first
@utsv5226
@utsv5226 7 жыл бұрын
are a and b private ?
@vishalsethi4024
@vishalsethi4024 7 жыл бұрын
they are private but they could be any because they are going to accessed in friend function and it can access any modifier.
@_tauqeerahmad
@_tauqeerahmad 4 жыл бұрын
#include using namespace std; class admitcard_no; //forward declaration class subject_code { int code; public : friend void getdata(subject_code , admitcard_no); friend void showdata(subject_code , admitcard_no); }; class admitcard_no { int admitcode; public : friend void getdata(subject_code , admitcard_no); friend void showdata(subject_code , admitcard_no); }; void getdata(subject_code &sc1, admitcard_no &ad1) { cout
@anantnegi6187
@anantnegi6187 Жыл бұрын
Friend function declaration mai & lgao i.e friend void getdata(subject_code &,admit_code &)
@kanchanjadhav-katake7526
@kanchanjadhav-katake7526 7 жыл бұрын
thnk u soo much sir for clearing concepts
Friend Class in C++ Example 1 | C++ Tutorial | Mr. Kishore
15:05
Naresh i Technologies
Рет қаралды 99 М.
Friend Function in C++ Part 1 | C++ Tutorial | Mr. Kishore
17:38
Naresh i Technologies
Рет қаралды 167 М.
Epic Reflex Game vs MrBeast Crew 🙈😱
00:32
Celine Dept
Рет қаралды 39 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 223 М.
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 37 МЛН
Constant Members in Class | C++ Tutorial | Mr. Kishore
20:04
Naresh i Technologies
Рет қаралды 55 М.
Copy Constructor in C++ | C++ Tutorial | Mr. Kishore
14:13
Naresh i Technologies
Рет қаралды 156 М.
Static Member Functions | C++ Tutorial | Mr. Kishore
16:51
Naresh i Technologies
Рет қаралды 67 М.
Operator Overloading in C++ Example 1 | C++ Tutorial | Mr. Kishore
31:48
Naresh i Technologies
Рет қаралды 227 М.
Friend functions and classes in C++ (Programming for beginners)
18:18
Static Data Members Example 1 | C++ Tutorial | Mr. Kishore
12:16
Naresh i Technologies
Рет қаралды 90 М.
Is the C programming language still worth learning?
9:27
Jacob Sorber
Рет қаралды 104 М.
std::unordered_set In C++
11:50
CppNuts
Рет қаралды 33 М.
Object Oriented Programming - The Four Pillars of OOP
11:23
Keep On Coding
Рет қаралды 340 М.
Epic Reflex Game vs MrBeast Crew 🙈😱
00:32
Celine Dept
Рет қаралды 39 МЛН