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

What does ide stand for?

517


What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

662


What is the string function?

552


What is the final variable?

581


what is thread in Java ?

622






Can we have this () and super () together?

603


What is a concrete classes? Is Java object class is concrete class?

511


What is the difference between the ">>" and " >>>" operators in java?

504


What is the difference between reader/writer and inputstream/output stream?

553


Is class forname reflection?

516


What is your platform’s default character encoding?

555


What is the purpose of finalization in java programming?

560


What is the meaning of flag day?

538


What is anagram in java?

517


Can we use string in switch case in java?

567