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
how to handle exceptions in ejb?
Define immutable object?
Why hashcode is used in java?
What is the length of a string?
What is data type example?
What differences exist between iterator and listiterator?
What is the difference between array list and vector in java?
Can we clone singleton object in java?
Is null function in java?
What is final, finally, finalize?
What are different data types?
What is methods in java?
Does java allow overriding static methods ?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
What is method in research paper?