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

Can we have try block without catch block?

815


What invokes a thread's run() method in java programming?

838


Explain an algorithm to find depth of a binary tree.

816


Why is whitespace important?

805


How to add menushortcut to menu item?

764


Explain inheritance in java?

798


How do you reverse sort in java?

739


What is meant by main method?

805


When we serialize an object does the serialization mechanism saves its references too?

751


What do you mean by compiler?

830


Write a program in java to find the maximum and minimum value node from a circular linked list.

792


Difference between overriding and overloading in java?

845


What methods are used to get and set the text label displayed by a button object?

803


What is java command?

809


How to declare an arraylist in java?

721