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 |
Can list be final in java?
Can constructor be static or final?
What will be the default values of all the elements of an array defined as an instance variable?
What is difference between static and final?
What is an 8 bit word?
Can you make a constructor final in Java?
0 Answers SwanSoft Technologies,
What do you understand by overloading and overriding in java?
Define immutable object?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is collection sort in java?
How do you sort a string in alphabetical order in java?
Why can't we override private static methods?