Can a Java class be extended?

Java allows extending class to any class, but it has a limit . 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 .

Sizin İçin Seçtik  What are the key attributes in Java?

Leave a Reply

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