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
Explain about features of local inner class?
How do you sort data in java?
What are constants and how to create constants in java?
Does java allow default arguments?
What is void class in java?
How concurrent hashmap works?
What is a void method?
Does every java program need a main?
How does map works in java?
Can we write a class without main method in java?
What is getkey () in java?
What are packages in java?
How can you read content from file in java?
What is "this" keyword in java? Explain
Why inputstreamreader is used in java?