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...

why abstract class will have a constructor?

Answer Posted / ram

Abstract class have the constructor in it just to instantiate its instance variables. Where as Interfaces are not containing any instance variables. That is why, they dont have constructor concept.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we restart a dead thread in java?

930


What is an arraylist in java?

989


List any five features of java?

961


Is null a string or object in java?

919


What is meant by class loader? How many types are there?

1177


What is subsequence of a string?

1035


Why to use nested classes in java? (Or) what is the purpose of nested class in java?

1019


What is variable explain with example?

993


Print Vertical traversal of a Binary Tree.

979


How do you differentiate abstract class from interface?

913


What is an interface in java?

1007


What is the differences between c++ and java? Explain

996


What is difference between static class and singleton pattern?

950


Can an interface implement another interface?

976


How to create an interface?

1007