Pergunta de entrevista da empresa eClinicalWorks

On the order of execution of Java code blocks when a class extends another class

Respostas da entrevista

Sigiloso

27 de abr. de 2014

Could you please expand?

37

Sigiloso

15 de out. de 2018

When a class extends another class, the execution of code is from parent to child. Firstly it calls the parent class methods/constructor after that child's class.

1

Sigiloso

21 de ago. de 2019

When one class have Methods which we have to use in another class that time extend one class to other.

Sigiloso

27 de jul. de 2018

This is the case of inheritance. Where we get all the methods of extended class to extending class

2