‹ Back to the paper
Define Interface with respect to data abstraction.
Answer
Answer
AIAn 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.
From ISC 2023 Specimen Computer Science Paper 1, question 1(ix).