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 class variable java?
What is the inheritance?
What is serialization in java?
Is java 11 paid version?
What is method and methodology?
Explain how to convert any java object into byte array.
What is generics in java interview questions?
How will you add panel to a frame?
How to restrict a member of a class from inheriting by its sub classes?
What do you mean by singleton class in java?
What is default size of arraylist in java?
How do you calculate square roots?
Is array a class?
What is the purpose of skeleton and stub?
What are the advantages of encapsulation in java?