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 ternary operator? Give an example.
What is mean by collections in java?
What is exception handling in java?
Explain the selection sort algorithm and state its time complexity?
Can we overload final method in java?
What does t in java mean?
What are the differences between stringbuffer and stringbuilder?
What is meant by method overriding?
What is better - 'bit-shift a value' or 'multiply by 2'?
What is the use of beaninfo?
What are nested classes in java?
What is the difference between inner class and nested class?
What are thread groups?
Explain aggregation in java?
What is data string?