Can we inherit the constructor in a Class?please give one
example.

Answer Posted / sanketh

we cannot inherit constructors.
because if we declare a constructor it must be a same name
as its class name, but two class must have same name

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know why doesn't the java library use a randomized version of quicksort?

741


What is the final method?

830


Can array grow dynamically in java?

718


Can we extend singleton class in java?

746


What is a java string?

726


Can we override the private methods?

734


What is the purpose of the file class in java programming?

742


If a method is declared as protected, where may the method be accessed?

744


Does list allow duplicates in java?

699


What are static blocks and static initalizers in java ?

777


What are locale settings?

731


What do heavy weight components mean in java programming?

712


Can we catch more than one exception in a single catch block?

838


What is a pointer and does java support pointers?

780


What is finally in Java?

802