Flashcards
What is an interface?
Flashcards do conjunto (10)
- 1InterfaceA collection of related methods with provided headers but no implementations
- 2All of the methods are...Public and abstract
- 3An interface is declared with ____ keywordinterface
- 4Interfaces are implemented using ____ keywordimplements
- 5A class that does not implement all methods declared in the interface must be declared_____abstract
- 6The classes that implement the same interface can be very different but must have _____A common feature or capability
- 7Can an interface instantiate variables?No it cannot
- 8Does the extends clause precede the implements clause?Yes it must precede implements
- 9A class can implement how many interfaces?It can implement any number of them.
- 10Does an interface contain instance variables?No it does not.
Informações
- Descrição
- Flashcards on java interface
- Criado por
- joannazhang13
- Visualizações
- 89
- Tags
- Avaliação