public class Students
{
  public static void main (String args [])
  {
    // Two separate instances
    Student student1, student2;

    student1 = new Student (10, "Scott", 500);
    student2 = new Student ();

    student2.StudentNumber = 30;
    student2.Name = "Paul";
    student2.depositMoney (300);

    student1.buyPizza ();
    student2.buyPizza ();
    student1.payRent ();
    student2.buyPizza ();
    student1.buyPizza ();
    // make an array of students
    Student[] myStudent = new Student[2];
    for (int i=0;i < 3;i++)
	myStudent[i].payRent();
    
    
   
  }
}
