Question: define and develop Two Java classes: planets and solar system The class Planets should contain several basic features of a Planet. The class Solar System
define and develop Two Java classes: planets and solar system
The class Planets should contain several basic features of a Planet.
The class Solar System should re-use the class Planets by composition
Both classes should contain more than one constructors, for each data field, and the toString method for both of them.
Also include a main method to build up ONE Solar System with at least three Planets. should be able to print out all the info either to the console.
also include comments as necessary (if possible)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
