Some question about Singleton


#1

Hi! I have a question about Singleton constructor. Why do we need to use (Context context) as parameter in constructor and getter?

What will change if we don’t use this parameter?
public static CrimeLab get( ̶C̶o̶n̶t̶e̶x̶t̶ ̶c̶o̶n̶t̶e̶x̶t̶) {…}
private CrimeLab( ̶C̶o̶n̶t̶e̶x̶t̶ ̶c̶o̶n̶t̶e̶x̶t̶){…}