Science, asked by premvasanth2758, 1 year ago

Difference between friend function and member function in c++ with example

Answers

Answered by vishnugiftz
11
1)Friends function is used to access the private data variable of classes wheremember function is used to access private data variable of same class. 2)u can call the friends function in main function without any object but to call member function of class u just need to create object of same class
Similar questions