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 |
How do you compare two objects?
What is default switch case? Give example.
what is synchronization and why is it important? : Java thread
What are unchecked exceptions in java?
How to solve the problem of generating the unique hash keys with hash function?
How can you traverse a linked list in java?
What does the three dot emoji mean?
what is business objects?
Why do we need data structure in java?
What are design patterns and please explain?
Write the algorithm to check the number non-leaf nodes in a tree.
What is ternary operator?