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 gc are there in java?
What is the collection interface?
Why is whitespace important?
what are the methods in object?
What does system out println () do?
What is mean by exception?
What is parameters example?
What is operator overloading. Is it is supported in java?
What is the difference between length and length() method in java?
How to optimize the javac output?
What is the difference between scrollbar and scrollpane?
What is the difference between throw and throws in java?
Which is faster string or stringbuilder?
Do we have pointers in java?
What do you mean by platform independence of Java?