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 do you create a first line indent?

497


How to create com object in Java?

640


What are the types of java?

596


What's the default access specifier for variables and methods of a class?

501


How do you get length in java?

550






What is arrays aslist in java?

505


How do you escape json?

534


What is run time allocation?

567


Tell me the latest versions in java related areas?

574


Are static members inherited to sub classes?

629


Why is sizeof not a function?

534


Define array. Tell me about 2-D array.

580


Does java allow overriding static methods ?

617


What is the difference between post and put?

530


Implement a stack with push (), pop() and min() in O(1) time.

620