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 the difference between double and float variables in java?
What is the symbol for average?
What is bean? Where it can be used?
What is byte value?
What is the impact of declaring a method as final?
What is module with example?
Can a java program have 2 main methods?
How to calculate the length of a singly linked list in java?
What is difference between char array and string?
Which variable is the independent variable?
What is an iterator interface in java programming?
Where and how can you use a private constructor?
What is Java Package and which package is imported by default?
What the difference is between execute, execute Query, execute Update?
How do you ensure that n threads can access n resources without deadlock?