Bloomberg Interview Question

what is the functional need for private modifier

Interview Answer

Anonymous

Mar 1, 2016

It's a safety feature of OOPS language. Private members can only be accessed within the class, so if you have a bug in your class, you only need to check the class instead of the entire project.