Private Member function in C++

How to access private member function of the class? Although it is a normal practice to place all the data items in a private section and all the functions in public, some situations may require that the functions to be hidden from the outside calls. Tasks such as deleting an account in a customer file or providing increment to and employee are events of serious consequences and therefore the functions handling such tasks should have restricted access. We can place these functions in the private section. A private member function…

Read More