Created
June 4, 2020 00:41
-
-
Save nooglersoon/5ec087d9080ec9a387866ade066fa51c to your computer and use it in GitHub Desktop.
Medium Session: Introduction to Swift's OOP in Indonesia - Part 1B
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
class Mobil { | |
let merk: String | |
let tempatProduksi: String | |
let statusList = ["Park","Reverse","Netral","Drive"] | |
let pedalStatus = ["Gas","Break"] | |
var engineStart = false | |
init(merk: String, tempatProduksi: String) { | |
self.merk = merk | |
self.tempatProduksi = tempatProduksi | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment