Java OOPs Pertanyaan dan Jawaban Wawancara
Question: How does inheritance work in Java?Answer: Inheritance allows a class to inherit properties and behaviors from another class. It promotes code reusability and establishes a relationship between a superclass and a subclass.Example:
|
Simpan untuk Revisi
Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.
Masuk untuk menyimpan bookmark, pertanyaan sulit, dan set revisi.
Apakah ini membantu? Ya Tidak
Most helpful rated by users: