Created
June 7, 2020 23:32
-
-
Save nooglersoon/aa0ea12f9d65bfff4489294a923f0909 to your computer and use it in GitHub Desktop.
Medium Session: Introduction to Swift's OOP in Indonesia - Part 2B
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
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