Answer Posted / aditya ganjiwale
Its there to be able to initialize the abstract class
internal state.
Lets say you would like to assign two variables, you would
have to do this for every implementation, but with
constructors in the abstract class you only need it once:
So every class inheriting only needs to call the
constructor, instead of assigning the values themself every
time.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is constructor chaining in java?
what is bmg file and how to create that files?what will it contailn?
How does java enable high performance?
Where can I find jdk in my computer?
What is the purpose of finalization in java programming?
What is the difference between length and size in java?
What is main string [] args?
What does exclamation mean in java?
Say any two properties in beans?
What is map in java?
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What is ++ a in java?
how can you take care of mutual exclusion using java threads? : Java thread
Why Java doesn’t support multiple inheritance?
Can constructor return value?