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

Difference between this() and super() in java ?

609


Explain 5 io best practices?

589


How do you make an arraylist empty in java?

471


What is a stack class in java ?

607


Explain implementation and how is it different from conversion?

583






What happens when I use / and % with a negative numerator?

536


What is the purpose of nested class in java?

597


What is default switch case? Give example.

574


What language is java written?

533


What is io stream in java?

513


Which list does not allow duplicates in java?

508


Define interface in java?

603


What is unicode full form?

546


What is the name of the java compiler?

517


How is a variable stored in memory?

523