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
What is a treeset in java?
Why is java called java?
What are the steps that are followed when two computers connect through tcp?
What is return null in java?
What is thread life cycle in java?
What languages are pass by reference?
What is token in java?
What happens when a thrown exception is not handled?
Difference between class#getinstance() and new operator ?
How do you sort a string in java?
What is a ternary operator in java?
What is the difference between static method and instance method in Java?
How to restrict a member of a class from inheriting by its sub classes?
What is an escape character in java?
What are dot operator queries?