// Serializable Student Class

import java.io.Serializable;

public class Student implements Serializable {
    private long rollNo;
    private String name;
    private String course;
  
    public void setRollNo(long rollNo) {
        this.rollNo = rollNo;
    }
  
    public long getRollNo() {
        return rollNo;
    }
  
    public void setName(String name) {
        this.name = name;
    }
  
    public String getName() {
        return name;
    }
  
    public void setCourse(String course) {
        this.course = course;
    }
  
    public String getCourse() {
        return course;
    }
}

Comments

Popular posts from this blog

Zeller's Congruence

Property Event-Delegation

Method with variable arguments