Can we inherit the constructor in a Class?please give one
example.
Answer Posted / rakesh
We Can Not Interit the constructor.
We Can't have same class name
And Constructor Hava the same name as class name
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is local class in java?
What are format specifiers in java?
Can we declare an array without size in java?
Can list contain null in java?
Can I declare a class as private?
Can we override the overloaded method?
How do you avoid global variables?
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.
What are checked exceptions?
What are the advantages of packages in java?
Should a main method be compulsorily declared in all java classes?
What is the difference between class & structure?
Does a class inherit the constructors of its superclass in java programming?
Can we split string with in java?
What is widening and narrowing in java? Discuss with an example.