Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. fun main(args: Array<String>) {
  2. val a = Test()
  3. a.hello("山田")
  4. }//main
  5.  
  6. class Test(){
  7. fun hello(name : String){
  8. println("私は${name}です。HELLO!")
  9. }//hello
  10. }//Test
  11.  
  12. class Next() : Test() //クラスの継承
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement