Can a class inherit the constructors of its superclass?

Answer Posted / ranganathkini

No a subclass cannot inherit the constructors of its
superclass. Constructors are special function members of a
class in that they are not inherited by the subclass.

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to reverse string in java?

617


What does string [] args mean?

543


How many days will it take to learn java?

519


Explain super keyword in java.

584


What are some examples of variable costs?

495






Define canvas?

566


What is a java applet? What is an interface?

635


Difference between static and dynamic class loading.

586


Is 0 true or false in java?

515


If I only change the return type, does the method become overloaded?

537


Can a final method be overloaded?

510


I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?

523


What is a default constructor and also define copy contrucyor?

603


Can constructor be static or final?

651


how to write a program for sending mails between client and server

1555