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

Flashcards

OOP - Inheritance Constructors and Super

nhunsdale02 Programming I Masters Inglês 6 flashcards

Flashcards do conjunto (6)

  1. 1Each subclass must call the _____ constructor Why?superclass
    to initialize instance variables from the superclass
  2. 2Super What does it do?Calls the superclass constructor.
    public officer(String name, int age, int houseNo){
    super(name,age);
    this.houseNo = houseNo;
    }
  3. 3Are the private superclass members hidden in a subclass?Yes
  4. 4If a modifier is set to public, who can see it?Other classes which instantiate that object and subclasses
  5. 5If a modifier is set to private, who can see it?ONLY that class
  6. 6If a modifier is set to PROTECTED, who can see it?- Superclass
    - Subclasses
    - Members in the same package

Informações

Descrição
Masters Programming I FlashCards sobre OOP - Inheritance Constructors and Super, 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?