Physics, asked by sannyashi2134, 11 months ago

Is Class and Interface same in Java Programming? Justify your answer.

Answers

Answered by ashish17817
0
In java, an interface is a reference type,similar to a class, that can contain only constants, method signatures, default methods, static methods, and nested types. ... Interfaces are used for abstraction. Since methods ininterfaces does not have body, they have to be implemented by the classbefore you can access them.
Similar questions