What is single and multiple inheritance in Java?

Single inheritance is a type of inheritance that enables a derived class to inherit attributes and methods from a single parent class while multiple inheritance is a type of inheritance that enables a derived class to inherit attributes and methods from more than one parent class.

Sizin İçin Seçtik  What is an example of polymorphism in Java?

Leave a Reply

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