Permalink
Browse files

Separate class

  • Loading branch information...
1 parent 6a10c73 commit 16cc290650cc26cbc401b25460400afa0fdc458d @rightgo09 committed Dec 29, 2012
View
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
@@ -0,0 +1,12 @@
+object HelloWorld { // オブジェクトHelloWorldの定義
+ def main(args: Array[String]) {
+ val greeting = new Greeting()
+ greeting.hello()
+ }
+}
+
+class Greeting { // クラスGreetingの定義
+ def hello() {
+ println("Hello World")
+ }
+}

0 comments on commit 16cc290

Please sign in to comment.