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

Can we have 2 main methods in java class?

764


What is the difference between inheritance and encapsulation?

868


What are the files generated after using IDL to java compiler?

828


How many bytes is 255 characters?

757


Is null in java?

768


What is math in java?

844


Is there a jre for java 11?

826


What is type safety in java?

744


Explain wait(), notify() and notifyall() methods of object class ?

833


What are the access modifiers available in java?

832


How do you override a private method in java?

705


Can we create a constructor in abstract class?

775


What are sets in java?

740


What are the features of junit?

839


What is the abstraction?

803