O GoConqr está de visual novo! Conte para nós o que você achou.

Flashcards

Interfaces

nhunsdale02 Programming I Masters Inglês 13 flashcards

Flashcards do conjunto (13)

  1. 1What is an interface?A group of related methods with empty bodies
  2. 2Implementing an interface allows a class to become more _____ about the behaviour it promises to provideformal
  3. 3Interfaces form a _____ between a class and the outside world which enforced at build time by the compiler.contract
  4. 4If your class claims to implement an interface, all methods defined by that interface _____ appear in its source code before the class will successfully compile.MUST
  5. 5How is an interface similar to a class? (4)- Contain any number of methods
    - has a .java extension
    - bytecode appears in a .class file
    - they are stored in packages
  6. 6How does an interface differ from a class?- You CANNOT INSTANTIATE an interface
    - No constructor
    - All methods are abstract
    - CANNOT contain instance fields
    - It is IMPLEMENTED, not extended
    - An interface can extend multiple interfaces
  7. 7An interface is _____ abstractimplicitly
  8. 8Methods in an interface are implicitly _____public
  9. 9If a class doesn't perform all the behaviour of the interface, the class must declare itself _____abstract
  10. 10What comes first, extends or implements?extends
  11. 11The signature of the interface method and the same return type should be _____ when overriding methodsmaintained
  12. 12What are the 2 rules of implementing an interface?- A class can implement more than 1 interface at a time
    - An interface can extend another interface
  13. 13To extend multiple interface how would you do this (the 2 you wish to extend are sports and names)public interface Nathan extends Sports, Names;

Informações

Descrição
Masters Programming I FlashCards sobre Interfaces, criado por nhunsdale02 em 06-06-2014.
Criado por
nhunsdale02
Visualizações
16
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?