Can we inherit the constructor in a Class?please give one
example.
Answer Posted / harivirat reddy
Constructors are not inherited because extending class must
contain diffent name but constructors class name and
constructor name must be similer.but we can inherit the
constructors by using 'super' keyword.
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Why map is used in java?
Can we increase array size dynamically in java?
Why is multiple inheritance not supported in java?
What are methods in java?
What is null mean in java?
Is java util list serializable?
what is optional in java 8?
Is zero a positive integer?
Can we force the garbage collection to run?
Explain the use of volatile field modifier?
What is a dynamic array in java?
How can we make sure main() is the last thread to finish in java program?
what is mutual exclusion? : Java thread
what is the significance of listiterator in java?
What is string array?