Created
October 1, 2019 13:52
-
-
Save rail-rate/ec39e72a672eea5b505fbbada21f20bf to your computer and use it in GitHub Desktop.
継承1
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
fun main(args: Array<String>) { | |
val a = Test() | |
a.hello("山田") | |
}//main | |
class Test(){ | |
fun hello(name : String){ | |
println("私は${name}です。HELLO!") | |
}//hello | |
}//Test | |
class Next() : Test() //クラスの継承 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment