Can you have a constructor in abstract class?
Answer Posted / dileep
Yes you can have a constructor in abstract class but you
should not instansiated directly you have to write one
subclass extends the abstract class.
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What do you understand by abstract classes?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What is palindrome in java?
Which containers use a flowlayout as their default layout in java programming?
What is type safety in java?
Explain the difference between an Interface and an Abstract class?
Does treeset use compareto?
Is string passed by reference in java?
Where to store local variables?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
Can we create our own daemon thread?
Write a function for palindrome and factorial and explain?
What methods are used to get and set the text label displayed by a button object?
How to make a read-only class in java?
What is :: operator in java 8?