public class Student {
private String sno;
private String sname;
private String sdept;
public String getSno() {
return sno;
}
public void setSno(String sno) {
this.sno = sno;
}
public String getSname() {
return sname;
}
public void setSname(String sname) {
this.sname = sname;
}
public String getSdept() {
return sdept;
}
public void setSdept(String sdept) {
this.sdept = sdept;
}
}
public interface IStudentDao {
public void insertStudent(Student stu);
public void deleteStudent(String sno);
public void updateStudent(Student stu);
public Student findStudentBySno(String sno);
public void displayStudentBySno(String sno);
public void displayAllStudent();
}
public class StudentDaoImpl implements IStudentDao {
@Override
public void insertStudent(Student stu) {
// TODO Auto-generated method stub
}
@Override
public void deleteStudent(String sno) {
// TODO Auto-generated method stub
}
@Override
public void updateStudent(Student stu) {
// TODO Auto-generated method stub
}
@Override
public Student findStudentBySno(String sno) {
// TODO Auto-generated method stub
return null;
}
@Override
public void displayStudentBySno(String sno) {
// TODO Auto-generated method stub
}
@Override
public void displayAllStudent() {
// TODO Auto-generated method stub
}
}
import java.util.Scanner;
public class MainClass {
IStudentDao studentDao = new StudentDaoImpl();
public int menu_select(Scanner scanner){
}
public void inputStudent(Student stu, Scanner scanner){
}
public void updateStudent(Student stu, Scanner scanner){
}
public static void main(String[] args) {
}
}