What's the order of call of constructors in inheritance?
a) First the constructor of the derived class is invoked and then the constructor of the...
What's the order of call of constructors in inheritance?
a) First the constructor of the derived class is invoked and then the constructor of the super class is invoked. b) The constructors of both the derived class and the super class are invoked simultaneously. c) First the constructor of the super class is invoked and then the constructor of the derived class is invoked. d) The order of call of constructors in inheritance is undefined.
A ordem de chamada dos construtores na herança é a seguinte:
a) Primeiro o construtor da classe derivada é invocado e depois o construtor da superclasse é invocado.
0
0
Faça como milhares de estudantes: teste grátis o Passei Direto
Compartilhar