Empresa engajada
Inheritance related. given two classes, A has public static void main() method. B extends A which is an empty class. what happens when we run B class
Sigiloso
Tricky one. But, without a main method in Subclass. How is it possible?
Since B class extends A, the A.main() method will be called.
Elaborating the above answer, since class B extends class A but class B doesn't have the main() method, the A.main() method will be called.
Fique por dentro de todas as oportunidades e dicas internas seguindo as empresas de seus sonhos.
Comece a buscar vagas para receber atualizações e recomendações personalizadas.