PRASHNIKAप्रश्निका
Back to the paper

Define Interface with respect to data abstraction.

Computer Science20231 markShort answer

Answer

Answer

AI
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.
Inheritance, Interfaces and Polymorphism

From ISC 2023 Specimen Computer Science Paper 1, question 1(ix).