Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solar System
Congratulations! You're submitting your assignment.
Comprehension Questions
initializemethod run? What does it do?initializemethod runs when I type.new. It creates a new instance of a class.Hashinstead of an instance of a class?.newto create a new planet; instead, I will create a new key/value pair and add it to the hash. In addition, if I want to access information about my planets, I will have to loop through the hash instead of invoking the methodsummarySolarSystemclass used aHashinstead of anArrayto store the list of planets?SolarSystemhas some particular behaviors (not just information retrieving methods), it will be more beneficial to set it up as a class.planetclass represents an individual planet. Thesolar_systemclass represents a whole solar system with many planets.requirestatements? Which files neededrequires, and which did not? What is the pattern?requirestatements go on top of the ruby files. The ruby files that share methods and/or variables with other ruby files should includerequirestatements.