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


Please Help Members By Posting Answers For Below Questions

What are the advantages of arraylist over arrays?

664


What is Gang of four design patterns

685


What is nextline method in java?

670


Why method overriding is used?

635


how to prepare for IT Officers Interview in Banks

1588






How we can declare a static variable?

759


What classes of exceptions may be caught by a catch clause in java programming?

798


What about method local inner classes or local inner classes in java?

666


Which is bigger float or double?

620


What is use of a abstract variable?

624


What is the functionality of the stub?

670


Can an interface have a class?

658


What is the indent key?

674


What do you mean by checked exceptions?

621


Is java pass by value or pass by reference?

639