Рет қаралды 46,815
FRIEND FUNCTION VS REGULAR FUNCTION
In this video we will learn Everything about Friend Function and see the Difference between Friend Function and Regular Function
If a function is defined as a friend function then, the private and protected data of a class can be accessed using the function.
The complier knows a given function is a friend function by the use of the keyword friend.
For accessing the data, the declaration of a friend function should be made inside the body of the class (can be anywhere inside class either in private or public section) starting with keyword friend.
Mail: Aniproguy@gmail.com
------------------------------------------------------------------------------------------------
Suggested Videos
Inline Function :- • Inline Function - FUNC...
STATIC FUNCTIONS IN C++ :- • STATIC FUNCTIONS IN C+...
CONSTRUCTOR IN C++:- • CONSTRUCTOR IN C++ ( S...
STATIC VARIABLE OR STATIC DATA MEMBER IN C++ :- • STATIC VARIABLE OR STA...
Constructor Overloading in C++- 32 :- • Constructor Overloadin...
FRIEND FUNCTION IN C++(THE CONCEPT):- • FRIEND FUNCTION IN C++...
FRIEND FUNCTION VS REGULAR FUNCTION:- • FRIEND FUNCTION VS REG...
FRIEND FUNCTION IN MULTIPLE CLASSES:- • FRIEND FUNCTION IN MUL...
INHERITANCE IN C++(THE CONCEPT):- • INHERITANCE IN C++ -38...
SINGLE INHERITANCE IN C++:- • SINGLE INHERITANCE IN ...
ACCESS SPECIFIER IN C++:- • ACCESS SPECIFIERS IN I...
MULTILEVEL INHERITANCE:- • MULTILEVEL INHERITANCE...
MULTIPLE INHERITANCE:- • MULTIPLE INHERITANCE I...
HIERARCHICHAL INHERITANCE:- • HIERARCHICAL INHERITAN...
HYBRID INHERITANCE:- • HYBRID INHERITANCE IN ...