Skip to content

Space - Suely#28

Open
SuelyBarreto wants to merge 10 commits intoAda-C13:masterfrom
SuelyBarreto:master
Open

Space - Suely#28
SuelyBarreto wants to merge 10 commits intoAda-C13:masterfrom
SuelyBarreto:master

Conversation

@SuelyBarreto
Copy link

Assignment Submission: Solar System

Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.

Reflection

Question Answer
When does the initialize method run? What does it do? When we create a new instance of the class.
Why do you imagine we made our instance variables readable but not writable? To force people to use the class methods
How would your program be different if each planet was stored as a Hash instead of an instance of a class? I would need more methods in main to handle the data
How would your program be different if your SolarSystem class used a Hash instead of an Array to store the list of planets? We would need to have a key like "planet name"
There is a software design principle called the SRP. 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? Yes, one handle planets and the other handles the solar system
How did you organize your require statements? Which files needed requires, and which did not? What is the pattern? Main had two "requires": planet and solar system

@SuelyBarreto SuelyBarreto changed the title SolarSystem - Suely - Space Space - Suely Feb 20, 2020
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.

1 participant