can abstract class have constructor how can you achive
this ?
Answers were Sorted based on User's Feedback
Answer / rajasekharreddy.y
Yes abstract class must have the constructor, these
constructor we can achive by creating the instance of the
concreate subclass of the abstract class.
| Is This Answer Correct ? | 14 Yes | 2 No |
Answer / bhargava
You cannot crate the constructor for an abstract class
directly. But you can create constructor for subclass for
an abstract class by making new class sub class for the
abstract class.
| Is This Answer Correct ? | 1 Yes | 7 No |
What is assembly used for?
What are the methods to rectify ambiguities in the interfaces in JAVA?
Give an example of use of pointers in java class.
I need to know about complete topic in java's collections i with an examples
Difference between flush() and commit() in hibernate?
How hashmap works in java?
what are the different non-access specifiers in java?
What is Locale class?
Why synchronization is important?
What are access specifiers available in java?
What is the difference between replace and replace all?
what is polymorphism with example?types of polymorphism?