classes :: syntax

 	
public class DemoSchool // tester class
{
    public static void main (String[] args)
    {
	
      // object
      Student user = new Student(arguments);
     
      // accessor method call      
      type variable = user.getMethod();
     
      // mutator method call
      type variable = user.setMutator(value);
        
    }
} // end of class DemoSchool 


class Student 
{

  private type variable = value; // declare, initialize
  
  Student (parameters) // constructor
  {
    variables = parameter;
    method(); 
  }
    
  private void method()
  {
    // processing   
  }
  
  int getMethod() // accessor method
  {
    return statement;   
  }
   
  int setMethod (parameter)// mutator
  {
   variable = parameter;
   return statement;
  }
}