Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

student information using array of object java

class Student {
	private String name;
	private int grade;
	private String email;

	public Student(String name, int grade, String email) {

		this.name = name;
		this.grade = grade;
		this.email = email;
	}

	public String toString() {

		return name + " " + grade + " " + email;
	}
}
Source by www.interviewsansar.com #
 
PREVIOUS NEXT
Tagged: #student #information #array #object #java
ADD COMMENT
Topic
Name
4+9 =