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
How many types of flags are there?
What is the use of flag?
What must a class do to implement an interface in java programming?
What does a method signature consist of?
Explain the overview of UDP messaging.
Define the term string pool?
Give few examples of final classes defined in Java API?
Explain the difference between abstract classes and interfaces in java?
Why is core java important?
when you will synchronize a piece of your code? : Java thread
What is meant by oops concept in java?
How do you sort a list in java?
What are the differences between abstract class and interface?
Why local variables are stored in stack?
What do you mean by JVM?