+ 2

What is the nesting of member function.

Although it is normal private to place all data item is a private section and all the function in public section. but same situation may require contain function to be hidden (like private data) from the outside class. So we can place these functions in the private section A private member function can be caleby another function that is a member of its class this is called nesting of member function. Even an object cannot invoked a private function that dot operator. https://code.sololearn.com/c6Uvm7VZ2Guv/?ref=app

24th Mar 2019, 10:31 AM
Sandeep
Sandeep - avatar
1 Odpowiedź
+ 5
Sandeep that's true but I don't know if it's called function nesting. Maybe it's a case of function hiding where a public function is used to access the hidden private function.
30th Mar 2019, 12:49 AM
Sonic
Sonic - avatar