switch static and public keyword writing