16 lines
209 B
Scala
16 lines
209 B
Scala
|
a:Array = Array(1,2,3,4)
|
||
|
|
||
|
@annotation
|
||
|
abstract class Square {
|
||
|
def alpha(x:Int, y:Int) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
trait Green {
|
||
|
def getColor: 'green
|
||
|
}
|
||
|
|
||
|
class GreenSquare(width:Int, height:Int) extends Square with Green {
|
||
|
|
||
|
}
|