object Rectangle{
def getS(a:Double,b:Double)={
a*b
}
def getL(a:Double,b:Double)={
2*(a+b)
}
}
object TestObject {
def main(args: Array[String]): Unit = {
print(Rectangle.getS(1,2))
print(Rectangle.getL(1,2))
}
}
object Rectangle{
def getS(a:Double,b:Double)={
a*b
}
def getL(a:Double,b:Double)={
2*(a+b)
}
}
object TestObject {
def main(args: Array[String]): Unit = {
print(Rectangle.getS(1,2))
print(Rectangle.getL(1,2))
}
}