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 the use of servlet engine?
How can we make sure main() is the last thread to finish in java program?
What is the difference between a vector & an array list?
What are thread safe functions?
Write a method that will remove given character from the string?
How to display all the prime numbers between 1 and 100
What is meant by singleton class?
Can we sort list in java?
Can you write a java class that could be used both as an applet as well as an application?
What is hash code collision?
What is prime number in java?
Difference between Linked list and Queue?