can abstract class have constructor how can you achive
this ?
Answers were Sorted based on User's Feedback
Answer / rajasekharreddy.y
Yes abstract class must have the constructor, these
constructor we can achive by creating the instance of the
concreate subclass of the abstract class.
Is This Answer Correct ? | 14 Yes | 2 No |
Answer / 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 |
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading?
What are the performance implications of interfaces over abstract classes?
Explain about assignment statement?
What is java virtual machine? Explain
Does a class inherit the constructor of its super class?if it does, how can you hide that constructor? if it doesnot how can you call it from the sub class?
Explain method overloading?
For which statements we use a label?
What is constructor and virtual function? Can we call a virtual function in a constructor?
Why all programming languages have main as a execution starting point?
What is the core java?
what is the difference between preemptive scheduling and time slicing? : Java thread
What is the protected method modifier?