Home TechnologyComputers Subscribe to RSS

What Is The Difference Between Member Function And Friend Function?

Answer Question

2 Answers - Sort by: Date | Rating

    Member function is a function defined inside a class while friend function is a function that can access the member functions and the variables of that class.
    0 0

    Ghazal_gi  

    answered 3 years ago

      Member functions will have the access on its own private variables and the the some public variables of other classes but a friend function will have the accessibility on private variable of other classes too.
      0 1

      Nag7484  

      answered 3 years ago

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International