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

Answer Posted / arvind patil

we cannot inherit the constructor.
But using the keyword super we can give a call
to the base class constructor

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of assembly language?

503


What is string data?

561


What is remote method invocation (rmi)?

617


What happens to a static var that is defined within a method of a class?

552


What do you understand by garbage collection in Java? Can it be forced to run?

558






What are wrapped classes in java programming?

591


How to read and write image from a file ?

561


Can we initialize the final blank variable?

589


Which is bigger float or double java?

528


What are the different types of garbage collectors in java?

551


How do you sort a list in java?

584


How many days will it take to learn java?

521


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

569


Can variables be used in java without initialization?

554


Compare java and python.

581