Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can you have a constructor in abstract class?

Answer Posted / abdul hannan

Yes. We can have constructor in an abstract class but we can
not directly instantiate it. If the abstract class have no
argument constructor, it will automatically call by the
constructor of subclass through constructor chaining. If
abstract class have constructor with argument, then we need
to call it by super() and pass the argument in it.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is hash table in java?

1031


Is there a case when finally will not execute?

1012


Does the order of public and static declaration matter in main method?

1076


What is difference between equals and hashcode method?

1139


How does finally block differ from finalize() method?

1055


Implementations of set interface?

1020


What is ide with example?

989


How many types of interfaces are there?

1078


What do you know about the garbage collector?

1115


Can we sort hashmap in java?

966


What are mutable classes?

1067


When is the finalize() called? What is the purpose of finalization?

1081


Which is better 64 bit or 32 bit?

945


Is 0 true or is 1 true?

966


How many types of string data types are there?

1098