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 size_t?
What is internal iteration in java se 8?
List some oops concepts in java?
Name few java util classes introduced with java 8 ?
A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.
Why heap memory is called heap?
Can we create our own daemon thread?
What do you mean by boolean?
What is the escape character in java?
Does set allows null in java?
What are constructors in java?
In the below example, how many string objects are created?
What are the data types supported by java? What is autoboxing and unboxing?
What do you understand by casting in java language?
What is the use of static class?