Created
November 29, 2014 15:56
-
-
Save michalkowol/e9e5f3f87338ddec829e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class ClassMain { | |
| private val mainVar = "Main" | |
| showMeTheMain() | |
| protected def showMeTheMain() { | |
| println(mainVar) | |
| } | |
| } | |
| class ClassA extends ClassMain { | |
| private val a = "qwerty" | |
| showMeTheMain() | |
| override def showMeTheMain() { | |
| println("not main anymore" + a.toUpperCase()) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment