Can you extend multiple classes?

It means a class can extend only a single class at a time . Extending more than one class will lead to code execution failure. When a class extends a class, then it is called single inheritance . If a class extends more than one class, it is called multi-inheritance , which is not allowed in Java.

Sizin İçin Seçtik  Kaç tane TOGG satıldı?

Leave a Reply

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

Can you extend multiple classes?

It means a class can extend only a single class at a time . Extending more than one class will lead to code execution failure. When a class extends a class, then it is called single inheritance . If a class extends more than one class, it is called multi-inheritance , which is not allowed in Java.

Sizin İçin Seçtik  What is polymorphism in Dart?

Leave a Reply

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