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
Can we override static methods in java?
Do loops java?
List implementations of list interface?
What is variable and example?
What is multithreading in java?
What is unmodifiable collection in java?
What are the 7 types of characters?
How do you check if two strings are equal in java?
What is the exception hierarchy in java?
What are the benefits of operations?
What are the main concepts of oops in java?
Explain listiterator and methods in listiterator?
Does treeset use compareto?
How many return statement are allowed in a function?
What is hash table in java?