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 |
How big is a pointer?
What is protected in java?
What is a class reference?
What carriage return means?
What is parse method?
What are non-access modifiers?
can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet?
Is treeset sorted in java?
WAP to illustrate the use of interface
Can we override private methods?
Can we declare the main method of our class as private?
Explain about main() method in java ?