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 java same as core java?
How to invoke external process in java.
Is java a security risk?
What is the use of static class?
Can a constructor call another constructor?
What are the basic control structures?
What do you mean by default constructor in java?
Write a java program for binary search?
What is a module function?
What are the types of literals?
What is difference between static and abstract class?
Is char a data type in java?
Why convert an applet to an application?
What is the difference between the final method and abstract method?
What is the use of System class?