public abstract class Group
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
groupName
Name assigned to this Group.
|
(package private) java.util.Collection<Student> |
students
Abstract Collection of Students to hold in this Group.
|
Constructor and Description |
---|
Group() |
Modifier and Type | Method and Description |
---|---|
(package private) abstract void |
addStudent(Student studentToAdd)
Adds a new Student to the underlying Collection.
|
(package private) abstract void |
editGroupName(java.lang.String newGroupName)
Modifies the group name to the one provided.
|
java.util.Collection<Student> students
java.lang.String groupName
abstract void editGroupName(java.lang.String newGroupName)
newGroupName
- String representing the new group name.abstract void addStudent(Student studentToAdd)
studentToAdd
- Student to add to this Group.