Consider this object diagram similar to the one shown in the videos.
In the TryRuby Playground:
Student
class and an Email
class with attributes as shown in the image.attr_accessor
declarations.Student
class to create a Student
object and set its attribute values as depicted in the diagram (e.g., with first_name
set to “Alice”).
Student
object attributes will involve creating an Email
object as well (again, as per the figure).Student
object’s data to the console (using puts
) such that the output looks as follows.Andrews, Alice (alice.a@memphis.edu)
Insert your all your screenshots into a Word DOCX and submit the file in the appropriate Canvas Assignment.