1
edit
Changes
→8. Implement Edit Student Option
=== 8. Implement Edit Student Option ===
8.1. In order to Implement the Edit Student menu option, firs we have to make sure that our Student class has all setters and getters we need, so we have to add the following methods to the <code>Student.Java</code>:
<pre>
</pre>
8.2. Then we should make sure that our StudentList class which extends SortedReadableList, can edit it's elements, so we have to add the following method to the class <code>StudentList</code>:
<pre>
void updateElement(Object oldElement, Object newElement){
doUpdate(oldElement,newElement);
}
</pre>