New planet

Report a typo

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.
Write a program in Kotlin
// write your code here
___

Create a free account to access the full topic