Can a class inherit the constructors of its superclass?

Answer Posted / shaziya parveen

No, a class can not inherit the constructor of its
superclass. This subclass can inherit the instance
variables and tha methods of the super class.
Using 'super' keyword a sub class can inherit the
constructors. This is only the solution.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

767


Does treeset allow null in java?

514


What is the purpose of lambda expressions?

584


Explain about anonymous inner classes ?

580


Which sorting is used in arrays sort in java?

585






Give us the name of the list layoutmanagers in java?

522


What do you mean by object?

551


What is the argument in java?

497


Which list is sorted in java?

585


What are the four pillars of java?

612


What is the functionality of the stub?

571


Which browsers work with java?

562


What is java autoboxing?

539


Which programming language is most secure?

529


what is the final keyword denotes in java?

584