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
Define how does a try statement determine which catch clause should be used to handle an exception?
Can a class be defined inside an interface?
Explain when we should make an instance variable private.
What is lazy initialization in java?
What is the difference between pass by reference and pass by pointer?
What is use of arraylist in java?
Explain the importance of finally block in java?
what is object-oriented programming in java?
What are the 2 types of java programs?
What is the += operator called?
What methods are used in Servlet?Applet communication?
What is the difference between the prefix and postfix forms of the ++ operator?
What is classpath?
what is singleton in java?
What is the purpose of javac exe?