What is an interface?

Description

Flashcards on java interface
boumedyen121
Flashcards by boumedyen121, updated more than 1 year ago More Less
joannazhang13
Created by joannazhang13 almost 9 years ago
boumedyen121
Copied by boumedyen121 almost 9 years ago
3
0

Resource summary

Question Answer
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.
Show full summary Hide full summary

Similar

Useful String Methods
Shannon Anderson-Rush
HTTPS explained with Carrier Pigeons
Shannon Anderson-Rush
Historical Development of Computer Languages
Shannon Anderson-Rush
Java Week 5 Object Oriented Programming
Troy Bowlin
Flvs foundations of programming dba 2
mariaha vassar
Programming Review
Shannon Anderson-Rush
Programming in Java
Faheem Ahmed
Tester Example
joannazhang13
Interface Example
joannazhang13
COP 1000 - Intro to Computer Programming (Final Exam)
Taylor Walker