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

Question 29

1 mark

Computer ScienceISC Computer Science - Competency Focused Practice Questions (CISCE, August 2024)Short answerInheritance, Interfaces and Polymorphism

Answer the following question.

All methods declared in the interface are abstract. Where will the body of these abstract methods…

All methods declared in the interface are abstract. Where will the body of these abstract methods be defined?

Answer

Answer

The body of an interface's abstract methods is defined in the class that implements the interface; that class must provide (override) the implementation for every abstract method of the interface.