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 do heavy weight components mean in java programming?
What is flag in java?
Explain about instanceof operator in java?
What is thread life cycle in java?
Does anyone still use java?
What is a two-pass assembler?
How do I remove a character from a string in java?
What is set in java?
Can a class have multiple superclasses?
What is the purpose of abstract class?
What are the differences between string and stringbuffer?
What is a parameter example?
Which class represents the socket that both the client and server use to communicate with each other?
What do you mean by inner class in java?
How to sort an array in java without using sort method?