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
How does queue work in java?
What is arraylist class in java?
What is difference between add() and addelement() in vector?
What do you mean by composition in java?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
What is the difference between method overriding and overloading?
When should the method invokelater() be used?
Explain the inheritance?
What is an example of procedure?
How to optimize the javac output?
Explain notifyall() method of object class ?
Explain importance of inheritance in java?
What are the library functions in java?
Explain when classnotfoundexception will be raised ?
What is data and its types?