# Soal Bab 9 ## 9.1 Inheritance     ![Uploading file..._frvb5znxn]() https://runestone.academy/ns/books/published//csawesome/Unit9-Inheritance/topic-9-1-inheritance-day2.html   #### 1. Misalkan terdapat definisi class berikut: ```java public class Mobil { private String pabrikan; private String model; private String warna public String getPabrikan() { } public String getModel() { } public String getWarna() { } } ``` Tuliskan class bernama `MobilListrik` yang mengekstensi class `Mobil` dengan field spesialisasi `lamaRecharge` bertipe `int` yang merepresentasikan lama jam untuk me-recharge baterei mobil listrik tersebut. Tuliskan juga method-method `getLamaRecharge` dan `setLamaRecharge`. ## 9.2 Memanggil Constructor Superclass (keyword `super`)       ## 9.3 Method Overriding      ## 9.4 Hirarki Inheritance https://runestone.academy/ns/books/published//csawesome/Unit9-Inheritance/topic-9-5-hierarchies.html https://www.educative.io/blog/java-inheritance-tutorial  ## 9.5 Polymorphism (instanceof, casting)         https://math.hws.edu/javanotes/c5/s5.html ## 9.6 Class Object       ## 9.7 Class Abstract dan Method Abstract    https://studylib.net/doc/7096945/lab-4-solution ## 9.8 Interface        ## Lab Activity // Dipilih Kembali          
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up