What is an interface?

Beschreibung

Flashcards on java interface
joannazhang13
Karteikarten von joannazhang13, aktualisiert more than 1 year ago
joannazhang13
Erstellt von joannazhang13 vor etwa 9 Jahre
22
1

Zusammenfassung der Ressource

Frage Antworten
Interface A collection of related methods with provided headers but no implementations
All of the methods are... Public and abstract
An interface is declared with ____ keyword interface
Interfaces are implemented using ____ keyword implements
A class that does not implement all methods declared in the interface must be declared_____ abstract
The classes that implement the same interface can be very different but must have _____ A common feature or capability
Can an interface instantiate variables? No it cannot
Does the extends clause precede the implements clause? Yes it must precede implements
A class can implement how many interfaces? It can implement any number of them.
Does an interface contain instance variables? No it does not.
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Java Week 5 Object Oriented Programming
Troy Bowlin
Interface Example
joannazhang13
Java Practice 1
Ummm No
Java Practice 2
Ummm No
Servion - Java Questionnaire
rohit.benedict
Java Core. Basics
Gadget
Programming Review
Shannon Anderson-Rush
Useful String Methods
Shannon Anderson-Rush
Programming in Java
Faheem Ahmed
Object Oriented Programming Concepts
Cmagapu