class Database(var name: String) object Main extends App { val db = new Database("asdf") db.name = "yxcv" println(db.name)}
Standard input is empty
yxcv
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!