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

Question 1(ix)

1 mark

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

Answer the following.

Define Interface with respect to data abstraction.

Answer

Answer

An Interface is a Java construct that contains only abstract methods (method signatures with no body) and constants, with no implementation. It specifies WHAT a class must do without specifying HOW, thus achieving full data abstraction; any class that implements the interface must provide (define) the actual implementation of every method declared in it.