What is inheritance in Java with example?

Inheritance in Java is a concept that acquires the properties from one class to other classes ; for example, the relationship between father and son. In Java, a class can inherit attributes and methods from another class. The class that inherits the properties is known as the sub-class or the child class.

Sizin İçin Seçtik  A1 seviye İngilizce ne kadar sürede öğrenilir?

Leave a Reply

Your email address will not be published. Required fields are marked *