eClinicalWorks Interview Question

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

Interview Answers

Anonymous

Apr 27, 2014

Could you please expand?

37

Anonymous

Oct 15, 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

Anonymous

Aug 21, 2019

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

Anonymous

Jul 27, 2018

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

2