Can a class inherit the constructors of its superclass?

Answer Posted / patil abhijeet

No, We cant inherit the constructor. Using super we can call
the constructor but we cannot modify the working of it.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is methods in java?

516


What is the protected method modifier?

563


What is difference between fileinputstream and filereader in java?

561


What is difference between classpath and path variables in java?

555


What is exception in java?

569






What is a condition in programming?

557


What is the difference between post and put?

536


Can we rethrow the same exception from catch handler?

566


What is the difference between Java1.4 and Java1.5

1830


What is gc()?

582


Which package has light weight components in java programming?

676


How to create a thread in java?

607


What is :: operator in java 8?

558


What is super in java?

574


What is skeleton and stub?

591