Skip to content

Instantly share code, notes, and snippets.

@nooglersoon
Created June 7, 2020 23:32
Show Gist options
  • Save nooglersoon/aa0ea12f9d65bfff4489294a923f0909 to your computer and use it in GitHub Desktop.
Save nooglersoon/aa0ea12f9d65bfff4489294a923f0909 to your computer and use it in GitHub Desktop.
Medium Session: Introduction to Swift's OOP in Indonesia - Part 2B
var mobilSatu = Sedan(merk:"Toyota", model:"Supra 2000", warna: "Merah marun", tempatProduksi: "Kabupaten Karawang")
print("Pelanggan baru saja membeli mobil merk \(mobilSatu.merk) dengan model \(mobilSatu.model) berwarna \(mobilSatu.warna) yang diproduksi di \(mobilSatu.tempatProduksi).")
print("\n")
print("***Proses Testing dalam Pabrik***")
print("\n")
// Testing mobil sedan di dalam pabrik
mobilSatu.startEngine()
print("Status Mobil: \(mobilSatu.carStatus("D")), the test is completed! \n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment