Write a Point2D class that has two Double properties: x and y. The properties must be set in the constructor.
Computer scienceProgramming languagesKotlinObject-oriented programmingObject-oriented programming basic
Constructors
Point2D
Report a typo
Write a program in Kotlin
// write the Point2D class here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.