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 abstract class have constructor how can you achive
this ?

Answer Posted / bhargava

You cannot crate the constructor for an abstract class
directly. But you can create constructor for subclass for
an abstract class by making new class sub class for the
abstract class.

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by ternary operator in java?

1017


What are the differences between Java 1.0 and Java 2.0?

2265


What is the difference between reader/writer and inputstream/output stream?

1077


What do you understand by the term polymorphism?

1075


Difference between class#getinstance() and new operator ?

1203


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

1085


how come we know the object is no more used in the class?

6461


Garbage collection in java?

1012


In case of inheritance what is the execution order of constructor and destructor?

1130


How to display arraylist values in java?

1001


What is the use of arraylist class in java?

1070


Explain java thread life cycle.

1025


What is api in java?

973


Explain how can you debug the Java code?

1065


Is java hard to learn?

899