Student s1=new Strudent();
writing this statement confirms that s1 holds some address at which only data member of student class is initialized.so,how we are able to invoke any function which is inside student class through student class object.
Oops concept related doubt
hey @Sumant123 If you want the call method of student class inside the student class .
you can call it without any object