/StudentClasses

Demonstrates use of classes and arrays in Ruby.

Primary LanguageRuby

StudentClasses

Demonstrates use of classes and arrays in Ruby.

All versions of the StudentClass files will create classes. Classes include:

  • Student
  • Course
  • Teacher

In StudentClassV4.rb, the student class also have methods to add a course and remove a course. Also, the course class have methods to add and remove students.

There is code to demonstrate:

  • creation of students, courses and teachers
  • adding and removing at least 1 student from a course
  • assigning a teacher to a student