Created
July 25, 2011 15:34
-
-
Save landon9720/1104403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to Scala version 2.9.0.1 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> class A { println("A") } | |
defined class A | |
scala> class B extends A { println("B") } | |
defined class B | |
scala> class C extends B { println("C") } | |
defined class C | |
scala> val c = new C | |
A | |
B | |
C | |
c: C = C@f78c581 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment