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 stack explain?
What are the different http methods?
What do you mean by chromounits in java8?
What happens when you add a double value to a string?
What are constants?
How to perform selection sort in java?
What is a "pure virtual" member function?
What is a null point?
What does jre stand for?
Is 64bit faster than 32 bit?
What is math in java?
What is the final class modifier?
Which methods are used during serialization and deserialization process?
Do loops java?
Which is better stringbuffer or stringbuilder?