add code
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* Represents a student with an id and a name.
|
||||
*
|
||||
* @author Marcus
|
||||
*/
|
||||
public class Student { // TODO: change type hierarchy
|
||||
|
||||
/**
|
||||
* The student name.
|
||||
*/
|
||||
// TODO: field
|
||||
|
||||
/**
|
||||
* The student id.
|
||||
*/
|
||||
// TODO: field
|
||||
|
||||
/**
|
||||
* Creates a new student with a specified name and id.
|
||||
*
|
||||
* @param name The name of the student.
|
||||
* @param id The id of the student.
|
||||
*/
|
||||
// TODO: constructor
|
||||
|
||||
/**
|
||||
* Returns the name of the student.
|
||||
*
|
||||
* @return The name of the student.
|
||||
*/
|
||||
// TODO: getter
|
||||
|
||||
/**
|
||||
* Returns the id of the student.
|
||||
*
|
||||
* @return The id of the student.
|
||||
*/
|
||||
// TODO: getter
|
||||
|
||||
|
||||
// TODO: override equals
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user