Skip to content

Instantly share code, notes, and snippets.

@landon9720
Created July 25, 2011 15:34
Show Gist options
  • Save landon9720/1104403 to your computer and use it in GitHub Desktop.
Save landon9720/1104403 to your computer and use it in GitHub Desktop.
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