public class SoundManager {

 private static SoundManager s_instance;
 private SoundPool mSoundPool;
 private HashMap mSoundPoolMap;
 private AudioManager mAudioManager;
 private Context mAct;
 
 public static SoundManager getInstance(){
  if(s_instance==null){
   s_instance = new SoundManager();
  }
  return s_instance;
 }
 
 public void Init(Context con){
  mSoundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 0);
  mSoundPoolMap = new HashMap();
  mAudioManager = (AudioManager)mAct.getSystemService(Context.AUDIO_SERVICE);
  mAct = con;
 }

}

 

위 소스에서 분명 생성자는 con을 파라미터로 받는 거 하나 뿐인데

 

getInstance 메소드 에서 파라미터 없이 객체 생성이 가능할까요?

 

 

 

 

 

 

안드로이드 개발 외주 아르바이트 합니다.