import java.lang.Math;

public class Student{ String name = “name”; int age = 19; String student_id = “123456987”; int credits = 0; double gpa = 0.0;

// other methods omitted }

import java.lang.Math;

public class Student{ String name = “name”; int age = 19; String student_id = “123456987”; int credits = 0; double gpa = 0.0;

// other methods omitted }

import java.lang.Math;

public class Student{ String name = “name”; int age = 19; String student_id = “123456987”; int credits = 0; double gpa = 0.0;

Student(){ // do nothing }

// other methods omitted }

import java.lang.Math;

public class Student{ String name = “name”; int age = 19; String student_id = “123456987”; int credits = 0; double gpa = 0.0;

Student(){ // do nothing }

// other methods omitted }

import java.lang.Math;

public class Student{ String name = “name”; int age = 19; String student_id = “123456987”; int credits = 0; double gpa = 0.0;

Student(){ // do nothing }

// other methods omitted }

import java.lang.Math;

public class Student{ String name = “name”; int age = 19; String student_id = “123456987”; int credits = 0; double gpa = 0.0;

Student(){ this.name = “name”; this.age = 19; this.student_id = “123456987”; this.credits = 0; this.gpa = 0.0; }

// other methods omitted }

import java.lang.Math;

public class Student{ String name = “name”; int age = 19; String student_id = “123456987”; int credits = 0; double gpa = 0.0;

Student(){ this.name = “name”; this.age = 19; this.student_id = “123456987”; this.credits = 0; this.gpa = 0.0; }

// other methods omitted }

import java.lang.Math;

public class Student{ String name; int age; String student_id; int credits; double gpa;

Student(){ this.name = “name”; this.age = 19; this.student_id = “123456987”; this.credits = 0; this.gpa = 0.0; }

// other methods omitted }

public class Main{

public static void main(String[] args){ Student someStudent = new Student(); System.out.println(someStudent.name) // “name”; System.out.println(someStudent.age) // 19 } }

import java.lang.Math;

public class Student{ String name; int age; String student_id; int credits; double gpa;

Student(){ this.name = “name”; this.age = 19; this.student_id = “123456987”; this.credits = 0; this.gpa = 0.0; }

// other methods omitted }

import java.lang.Math;

public class Student{ String name; int age; String student_id; int credits; double gpa;

Student(){ this.name = “name”; this.age = 19; this.student_id = “123456987”; this.credits = 0; this.gpa = 0.0; }

Student(String name, int age, String student_id, int credits, double gpa){ }

// other methods omitted }

import java.lang.Math;

public class Student{ String name; int age; String student_id; int credits; double gpa;

Student(){ this.name = “name”; this.age = 19; this.student_id = “123456987”; this.credits = 0; this.gpa = 0.0; }

Student(String name, int age, String student_id, int credits, double gpa){ this.name = name; this.age = age; this.student_id = student_id; this.credits = credits; this.gpa = gpa; }

// other methods omitted }

import java.lang.Math;

public class Student{ String name; int age; String student_id; int credits; double gpa;

Student(){ this.name = “name”; this.age = 19; this.student_id = “123456987”; this.credits = 0; this.gpa = 0.0; }

Student(String name, int age, String student_id, int credits, double gpa){ this.name = name; this.age = age; this.student_id = student_id; this.credits = credits; this.gpa = gpa; }

// other methods omitted }

public class Main{

public static void main(String[] args){ Student someStudent = new Student(); System.out.println(someStudent.name) // “name”; System.out.println(someStudent.age) // 19

<mark>Student anotherStudent = new Student("John", 25,
                            "1239873445", 4, 4.0);</mark>
System.out.println(anotherStudent.name) // "John";
System.out.println(anotherStudent.age)  // 25

} }

"/js/highlight.pack.js"