synatx of friend function in c++
Answers
Answered by
1
Answer:
Software Testing Help logo 1
Friend Functions In C++
Friend functions in C++ (1)
Know More About Friend Functions In C++ With Examples.
C++ supports the feature of encapsulation in which the data is bundled together with the functions operating on it to form a single unit. By doing this C++ ensures that data is accessible only by the functions operating on it and not to anyone outside the class.
This is one of the distinguishing features of C++ that preserves the data and prevents it from leaking to the outside world.
=> Read Through The Easy C++ Training Series.
Similar questions