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 the abstract class has default constructor?

Answer Posted / ranganathkini

A class has a constructor so that when an instance of the
class is created, the fields of the class can be setup to a
initial valid state.

Abstract classes define partial implementation of a public
contract. Which means that it may implement some of the
methods and contains partially implemented methods that are
marked abstract.

Since abstract classes can have partial implementation and
such partial implementation can include fields of the class,
a constructor becomes necessary so that those fields are
initialized to a valid default state when they are created
thru the constructor of their concrete subclasses.

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is treeset sorted in java?

933


What is methodological theory?

930


What is the difference between Error, defect,fault, failure and mistake?

1133


What is variable and constant explain with example?

1013


Explain inner classes ?

1072


How many tetrahedral voids are there in bcc?

1012


What is unmodifiable list in java?

901


Can we use catch statement for checked exceptions?

913


What is maximum size of arraylist in java?

956


what is the difference between future and callable interface in java?

1145


Explain the difference between association, aggregation and inheritance relationships.

1025


What is a module function?

1024


What are the different types of java?

988


What does the exclamation mark mean in java?

1167


What is the difference between heap and stack memory?

1134