#java #javatutorial #javacourse public class Main { public static void main(String[] args) { // constructor = A special method to initialize objects // You can pass arguments to a constructor // and set up initial values Student student1 = new Student("Spongebob", 30, 3.2); Student student2 = new Student("Patrick", 34, 1.5); Student student3 = new Student("Sandy", 27, 4.0); ( ); ( ); ( ); ( ); ( ); ( ); ( ); ( ); ( ); ( ); ( ); ( ); (); (); (); } } public class Student { String name; int age; double gpa; boolean isEnrolled; Student(String name, int age, double gpa){ = name; = age; = gpa; = true; } void study(){ ( + " is studying"); } }









