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

What is the difference between a break statement and a continue statement?

822


What is public static void main?

809


What are controls and their different types in awt?

848


What variables are stored in stack?

751


What is the difference between size and length in java?

749


What is the arraylist in java?

762


What is the best definition for data?

740


What are encapsulation, inheritance and polymorphism?

742


why java does not support unsigned keyword?

4724


What is split return?

695


how to run ecllipse with jettyserver for windows environment using batch file

1735


How does a cookie work in Servlets?

601


Difference between nested and inner classes ?

824


Explain wait() method of object class ?

902


What are voids?

755