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
What is difference between static and final?
Can we compare two strings in java?
How many types of literals are there in JAVA?
What do you understand by an io stream?
What is the lifetime and scope of a variable?
What is an object's lock and which object's have locks in java programming?
Can a abstract class be defined without any abstract methods?
How will you reverse a singly-link list?
What is bitwise complement?
What is a newline character in java?
Where pragma is used?
How to pass arraylist to stored procedure in java?
What is the final field modifier?
State two differences between C and Java.
What is string [] java?