can abstract class have constructor how can you achive
this ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which of the following is not an isolation level in the JDBC

1888


Why parsing is done?

741


What is the difference between variable declaration and variable initialization?

745


What is the difference between @before and @beforeclass annotation?

747


What is the difference between serial and throughput garbage collector?

793


Java.util.regex consists of which classes?

774


What is a double?

825


What are alternatives to java serialization?

810


What is Hierarchy of exception?

843


What is argument in java?

769


What is array list in java?

814


How to calculate the length of a singly linked list in java?

778


What is considered an anti pattern?

709


What are structs in java?

800


What about static nested classes in java?

831