TheinitInstancemethodletstheinternalinstancebeinitializedonlyonceandthisisdoneintheMyApplicationclassaswesawearlier.ThegetInstancemethodallowstoaccesstheinstancefromeverypartofourapplicationandtheMySingletonconstructoriskeptprivatebecausewedon’twanttoallowthecreationofmultipleins