All Packages Class Hierarchy This Package Previous Next Index
Class mypackage.Courses
java.lang.Object
|
+----mypackage.Courses
- public class Courses
- extends Object
- implements Serializable
This class implements the Courses for which student is registered
- Version:
- 1.0
- Author:
- Vicky Shiv
-
courseid
- String to hold course id for the student
-
test
- Vector to hold diffrent Test for the Courses
-
Courses(String)
- Default Constructor .This creates two test for the every courses and marks
assign to each is 99
-
addTest(String)
- Add a new Test to the Vector
-
deleteTest(String)
- delete an existing Test from the Vector "test"
-
getCourseID()
- return the course id
-
readObject(ObjectInputStream)
- These are the default function to be include to Implement Serialization
This will call the DefalutReadObject function for the ObjectInputStream
-
writeObject(ObjectOutputStream)
- These are the default function to be include to Implement Serialization
This will call the DefalutWriteObject function for the ObjectOutputStream
test
public Vector test
- Vector to hold diffrent Test for the Courses
courseid
public String courseid
- String to hold course id for the student
Courses
Courses(String courseid)
- Default Constructor .This creates two test for the every courses and marks
assign to each is 99
- Parameters:
- String - Coursid
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
addTest
public boolean addTest(String Testid)
- Add a new Test to the Vector
- Parameters:
- String - Testid of form (Test + Marks)
- Returns:
- boolean True if the test is added Sucessfully
else False
deleteTest
public boolean deleteTest(String Testid)
- delete an existing Test from the Vector "test"
- Parameters:
- String - Testid of form (Test + Marks)
- Returns:
- boolean true if the test is deleted Sucessfully
else False
getCourseID
public String getCourseID()
- return the course id
- Returns:
- String Courseid
All Packages Class Hierarchy This Package Previous Next Index