I am new to android and I have read about context in Android Documentation and in below given link,
If suppose I have a class and it contains some methods in it, for instance consider the below given code snippet.
Sample1.java
class Sample1 extends AppCompatActivity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_login);
        Sample2.function1(Sample1.this);
    }
    public void func1()
    {
        //...
    }
    public void func2()
    {
        //...
    }
    public void func3()
    {
        //...
    }
}
Sample2.java
class Sample2 extends AppCompatActivity {
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_login);
    }
    public static void function1(Context context){
        //can I access all the public methods present in sample1 class
    }
}
Please do pardon me if the doubt is wrong. I am trying to understand the basics. Any help would be appreciable and thanks in advance.
 
     
     
     
     
     
    