Computer Science, asked by Bansaui, 3 months ago

What is an Interface?

Answers

Answered by Ᏸυէէєɾϝɭყ
2

Answer:

  • The interface is similar to a class in Java, but it is a collection of abstract methods. A class can have more than one interface.

Answered by BRAINstormerX352
0

Answer:

In Java, an Interface is simply an abstract type that contains the behaviour which the classes would show or implement in themselves during their creation.

Well, simply, say that a Class 'Car' expresses a behaviour called 'speed-control'. This behaviour will be originally stored in the Interface and will be input in the Class 'Car' during its creation.

Note that the keywords allowed to be input in Interfaces are only method signature and constant declarations.

.Thanks, have a great day ahead !

Similar questions