Praktikum Pertemuan Ke 5 Pemrograman Orientasi Objek.
-
Updated
Oct 23, 2024 - Java
Praktikum Pertemuan Ke 5 Pemrograman Orientasi Objek.
Single inheritance is a feature in Java where a class can inherit only one parent class. In other words, a subclass can only inherit from one superclass. This is also known as "is-a" relationship, where a subclass is a type of its superclass.
I will be creating a MotorVehicle superclass, and one subclass/ childclass named MonsterTruck.
Add a description, image, and links to the inheritance-in-java topic page so that developers can more easily learn about it.
To associate your repository with the inheritance-in-java topic, visit your repo's landing page and select "manage topics."