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 |
My application URL : http://localhost:8080/Application/Login.jsp. When a user enter this url in IE then, how it get Login.JSP Page exactly? what are the processes will happen from when we submit the URL to get Login.jsp?
What is the main function in java?
Is array an object in java?
Does java arraylist maintain insertion order?
Java.util.regex consists of which classes?
Is it possible to instantiate the abstract class?
What is a modifier?
why Java does not support multiple inheritances?
What is the symbol for space?
How many bits are used to represent unicodde,ASCII,UTF-16 and UTF-8 characters?
What is classes in java?
What is Applet Flickering ?
1 Answers Infosys, Persistent,