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
-
course
- Awt Componet Hashtable to stores various courses
-
password
- String to stores the password of the Student
-
userid
- String to stores userid of the student
-
Student(String, String)
- Constructor for the student
-
addCourses(String)
- This to add new courses to the Student
-
deleteCourses(String)
- This to delete the courses from the Student Course list
-
readObject(ObjectInputStream)
- These are the default function to be include to Implement Serialization
This will call the DefalutReadObject function for the ObjectInputStream
-
setPassword(String)
- This to change the password of the Student
-
writeObject(ObjectOutputStream)
- These are the default function to be include to Implement Serialization
This will call the DefalutWriteObject function for the ObjectOutputStream
course
public Hashtable course
- Awt Componet Hashtable to stores various courses
password
public String password
- String to stores the password of the Student
userid
public String userid
- String to stores userid of the student
Student
Student(String password,
String userid)
- Constructor for the student
- Parameters:
- String - as password
- String - as Studentid
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
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
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
setPassword
public void setPassword(String password)
- This to change the password of the Student
- Parameters:
- String - a new password
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