All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class mypackage.Student

java.lang.Object
   |
   +----mypackage.Student

public class Student
extends Object
implements Serializable
This class implements the Student which are registered in the project

Version:
1.0
Author:
Vicky Shiv

Variable Index

 o course
Awt Componet Hashtable to stores various courses
 o password
String to stores the password of the Student
 o userid
String to stores userid of the student

Constructor Index

 o Student(String, String)
Constructor for the student

Method Index

 o addCourses(String)
This to add new courses to the Student
 o deleteCourses(String)
This to delete the courses from the Student Course list
 o readObject(ObjectInputStream)
These are the default function to be include to Implement Serialization This will call the DefalutReadObject function for the ObjectInputStream
 o setPassword(String)
This to change the password of the Student
 o writeObject(ObjectOutputStream)
These are the default function to be include to Implement Serialization This will call the DefalutWriteObject function for the ObjectOutputStream

Variables

 o course
 public Hashtable course
Awt Componet Hashtable to stores various courses

 o password
 public String password
String to stores the password of the Student

 o userid
 public String userid
String to stores userid of the student

Constructors

 o Student
 Student(String password,
         String userid)
Constructor for the student

Parameters:
String - as password
String - as Studentid

Methods

 o readObject
 private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
These are the default function to be include to Implement Serialization This will call the DefalutReadObject function for the ObjectInputStream

 o writeObject
 private void writeObject(ObjectOutputStream out) throws IOException
These are the default function to be include to Implement Serialization This will call the DefalutWriteObject function for the ObjectOutputStream

 o addCourses
 public boolean addCourses(String courseid)
This to add new courses to the Student

Parameters:
String - a new Course id
Returns:
boolean True if the Course is added Sucessfully else False
 o setPassword
 public void setPassword(String password)
This to change the password of the Student

Parameters:
String - a new password
 o deleteCourses
 public boolean deleteCourses(String courseid)
This to delete the courses from the Student Course list

Parameters:
String - a existing Course id
Returns:
boolean True if the Course is deleted Sucessfully else False

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1