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

Variable Index

 o courseid
String to hold course id for the student
 o test
Vector to hold diffrent Test for the Courses

Constructor Index

 o Courses(String)
Default Constructor .This creates two test for the every courses and marks assign to each is 99

Method Index

 o addTest(String)
Add a new Test to the Vector
 o deleteTest(String)
delete an existing Test from the Vector "test"
 o getCourseID()
return the course id
 o readObject(ObjectInputStream)
These are the default function to be include to Implement Serialization This will call the DefalutReadObject function for the ObjectInputStream
 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 test
 public Vector test
Vector to hold diffrent Test for the Courses

 o courseid
 public String courseid
String to hold course id for the student

Constructors

 o Courses
 Courses(String courseid)
Default Constructor .This creates two test for the every courses and marks assign to each is 99

Parameters:
String - Coursid

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 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
 o 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
 o getCourseID
 public String getCourseID()
return the course id

Returns:
String Courseid

All Packages  Class Hierarchy  This Package  Previous  Next  Index
1