Create the class Planet with the following properties:
star– of type String, with the default value "Unknown Star";mass– of type Double, with the default value 1.0;numberOfSatellites– of type Int, with the default value 1.
Create the class Planet with the following properties:
star – of type String, with the default value "Unknown Star";mass – of type Double, with the default value 1.0;numberOfSatellites – of type Int, with the default value 1.Create a free account to access the full topic