Why we cannot define constructor of super class in a sub class ?

Showing Answers 1 - 11 of 11 Answers

Roopa

  • Feb 19th, 2006
 

We cannot define constructor of super class in subclass because the order of execution of constructors will be from super class to current class. So there is no need of defining the super class constructor in subclass.

greeshma

  • Mar 7th, 2006
 

we can inherit a class from a super class only.

  Was this answer useful?  Yes

GREESHMA

  • Mar 9th, 2006
 

CONSTRUCTOR HAS SOME SPECIAL PROPEERTIES .

it has the same name as the class name.so a super class constructor has to call in the super class itself  but not in the sub class.

  Was this answer useful?  Yes

santosh

  • Apr 9th, 2006
 

we not define the constructor of super class in subclass because when we extend the class then property of superclass come in subclass..

  Was this answer useful?  Yes

sampra

  • Feb 15th, 2008
 

We cannot define constructor of super class in subclass because the order of execution of constructors will be from super class to current class. So there is no need of defining the super class constructor in subclass.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions