I'm a beginner learning java and andorid so please bear with me even if the question sounds idiotic.
So from what i know from java, in order to call a non static method, class must be initiated.
But i came across a code like below
might not be correct since i'm writing off of my memory
SharedPreferences shared = getsharedpreference("i",String)
here getsharedpeference which is a method inside ContextWarpper is called without creating the class. The method seems to be non static, so i am wondering how this is possible?