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

Explain inner classes ?

1123


What is Java Package and which package is imported by default?

1090


What are the data types supported by java?

1014


Which is illegal identifier in java?

1084


How to instantiate static nested classes in java?

1077


What is bool mean?

1071


List down the methods and interfaces of collection class in java.

979


How to sort double array in java?

981


What does += mean coding?

925


What is polymorphism in java? What are the kinds of polymorphism?

1064


What about member inner classes?

1092


How do you define a singleton class?

1073


What is float in java?

985


What is array size in java?

955


Why isn’t there operator overloading?

1062