can abstract class have constructor how can you achive
this ?
Answer Posted / 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 |
Post New Answer View All Answers
State the main difference between c++ and java?
What is anti pattern in cyber security?
What is the default size of set in java?
What is slash r?
What is a line separator in java?
Are arrays classes in java?
What is the purpose of the enableevents() method in java programming?
Is hashset ordered java?
Which are different kinds of source code?
Where are global variables stored?
Can we make main() thread as daemon?
What is lossy conversion in java?
How many bits is a double?
How does hashmap work in java ?
Why should I use abstract class?