Answer:
Answered below
Step-by-step explanation:
//Program is written in Kotlin programming language
Class Circle(xCoordinate: Double, yCoordinate: Double, diameter: Int){
var coordinateX = xCoordinate
var coordinateY = yCoordinate
var circleDiameter = diameter
fun diffLocation(x1: Double, y1: Double){
coordinateX = x1
coordinateY = y1
print (coordinateX, coordinateY)
}
}
//Tester class
Class Main{
fun main( ){
val circle = Circle(2.34, 4.56, 10)
print(circle.coordinateX)
print (circle.coordinateY)
circle.diffLocation( 3.4, 2.8)
}
}