Prashnikaप्रश्निका
Code
About
‹ Back to the paper

Question 1(viii)

1 mark

Computer ScienceISC 2024 Specimen Computer Science Paper 1Short answerInheritance, Interfaces and Polymorphism

Answer the following.

State any one purpose of using interfaces in Java programming.

Answer

Answer

One purpose of using interfaces in Java is to achieve multiple inheritance of type: since a Java class can extend only one class, it can implement more than one interface to inherit (and be forced to provide implementations for) the abstract behaviour/method signatures declared in each of them.