SHARE
TWEET

Class Mobil

a guest Feb 27th, 2020 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Mobil//secondary constructor
  2. (var warnaMobil: String, var namaPemilik: String, var kecepatanMax: Int, var platNomor: String, var pabrikan: String) {
  3.  
  4.     init {
  5.         println("Warna Mobil : ${warnaMobil}")
  6.         println("Nama Pemilik Mobil : ${namaPemilik}")
  7.         println("Kecepatan Max Mobil : ${kecepatanMax}")
  8.         println("Platnomor Mobil : ${platNomor}")
  9.         println("Pabrikan Mobil : ${pabrikan}")
  10.     }
  11.  
  12.     fun klakson(){
  13.         println("Tin tin")
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top