why abstract class will have a constructor?

Answer Posted / hari krishna

All the classes including the abstract classes can have
constructors.Abstract class constructors will be called
when its concrete subclass will be instantiated.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are arrays primitive data types?

855


What is string syntax?

816


What is the use of generics? When was it added to the Java development Kit?

767


What is the meaning of variable in research?

775


What is difference between static class and normal class?

759


What are local variables?

811


Can list be final in java?

696


What is the maximum size of arraylist in java?

716


Which is illegal identifier in java?

798


Difference between string s= new string (); and string s = "abv";?

985


Give a brief description of java socket programming?

752


How does java enable high performance?

929


Is null function in java?

787


What is currentthread()?

770


1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?

4395