Skip to content

Conversation

@CloudyLopez
Copy link

Solar System

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Answer
When does the initialize method run? What does it do? it allows the other functions to run properly in addition to 'initializes' the class.
Why do you imagine we made our instance variables readable but not writable? bc we dont want them to change as the program is working. we have established the planets and let the user choose from those (outside of the planet they did)
How would your program be different if each planet was stored as a Hash instead of an instance of a class? hashes would need to be called differently where as a class is usable throughout.
How would your program be different if your SolarSystem class used a Hash instead of an Array to store the list of planets? the arrays were ordered and therefore easier to use (manipulate?) because of... order. hashes would require more typing.
The Single Responsibility Principle (SRP) says that each class should be responsible for exactly one thing. Do your classes follow SRP? What responsibilities do they have? the classed do follow SRP bc to make the methods (and instances) to do what they need to do, they ensure that the code does what its supposed to do.
How did you organize your require statements? Which files needed requires, and which did not? What is the pattern? per the examples in class and google, i followed the format.

@kaidamasaki
Copy link

Solar System

Good job! Your code was clean and easy to understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants