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 static block?
What is %d in printf?
What is the generic function?
Is java a utf 8 string?
How can you generate random numbers in java?
Differentiate between nested and inner class in java.
What is a stringbuilder?
How to solve the problem of generating the unique hash keys with hash function?
Can we use a default constructor of a class even if an explicit constructor is defined?
What is java in simple terms?
Is c better than java?
Write a program to print 15 random numbers using foreach of java 8?
How do you define a method?
How can a gui component handle its own events in java programming?
What are jee technologies?