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

Does a class inherit the constructor of its super class?if
it does, how can you hide that constructor? if it doesnot
how can you call it from the sub class?

Answer Posted / pandu

Hi ,
constructor is never been inherited from superclass to
subclass.
we can call the Super class constructor in Sub class
by using
Super();
that too this stement should be first line in method.

Best Regards.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is independent and dependent variables in research?

845


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

1054


How java uses the string and stringbuffer classes?

1044


Can each java object keep track of all the threads that want to exclusively access it?

940


Is java owned by oracle?

993


What is the use of jtable?

1102


What is methods and methodology?

1009


What is increment in java?

948


What are the main concepts of oops in java?

1712


What is the purpose of assert keyword used in jdk1.4.x?

1047


What is the use of flag?

1057


What is the collections api?

1036


What is comparable and comparator interface? List their differences

1081


What are the advantages of exception handling?

1048


Can size_t be negative?

1152