You just learned how to write a Ruby class definition, the abstract "blueprint" you'll use to create objects of your own design. Now put that knowledge to use.
- get meaningful reps writing class definitions with getter and setter methods
- Create a file called
student.rb - Write a class definition for
Student, using the in class exampleUseras a guide. - Define getter and setter methods (making sure that they work as you go) for the following attributes:
first_namelast_nameprior_occupation