Skip to content
Snippets Groups Projects
Commit 3e9b1972 authored by Simon Barrett's avatar Simon Barrett
Browse files

Small update to Module class

parent 7cbf04d8
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ public class Module {
/*
This class holds the lesson objects and enables the user to pick from them. It has been designed so that it
can be replicated and extended to include Courses. This is expanded upon in the ReadMe.
can be replicated and reused to add a Courses class to the program. This is expanded upon in the ReadMe.
*/
private Lesson[] lessons;
......@@ -17,7 +17,7 @@ public class Module {
* Returns a lesson from the Lesson array depending on User input
* User starts choice at 1 rather than 0 so this needs to be translated to arrays with base 0
* @param choice
* @return Lesson object
* @return Lesson object from array at choice - 1
*/
public Lesson getLesson(int choice) {
return lessons[choice - 1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment