Can you have a constructor in abstract class?
Answer Posted / sadiq
Yes. Abstract class can have constructor.
But abstract class cannot be instantiated,how we can call
constructor? Using super()(calls super class constructor) in
the subclass which extends abstract class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is void a keyword in java?
Is treeset sorted in java?
What is the biggest integer?
Is array primitive data type in java?
What are the differences between heap and stack memory in java?
What is string syntax?
What is difference between identifier and variable?
What does the “static” keyword mean?
What is the difference between static and global variables and also define what are volatile variables?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What is passed by reference and pass by value ?
What is the difference between a vector & an array list?
What do you mean by JVM?
What is complexity and its types?
Difference between current previous versions of Java?