Created
June 7, 2020 23:18
-
-
Save nooglersoon/f50156c1fed8661755d9d96018148e98 to your computer and use it in GitHub Desktop.
Medium Session: Introduction to Swift's OOP in Indonesia - Part 2A
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 Sedan: Mobil { // -> Class Toyota merupakan subclass atau child class, sementara Mobil adalah superclass atau parent class | |
let model: String; | |
let warna: String; | |
init(merk: String, model: String, warna: String, tempatProduksi: String) { | |
self.model = model | |
self.warna = warna | |
super.init(merk: merk, tempatProduksi: tempatProduksi) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment