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 / saurabh

public class xyz : abc
{
int r = 10;

public xyz()
{
r = 35;


}


}
public abstract class abc
{
public int i = 0;
public abc()
{
i = 10;
}
}

sure , we can create constructor in abstract class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class declared as private be accessed outside it’s package?

1065


What is the default execution method in java?

1268


How do you create a null object?

1139


Can we overload the methods by making them static?

1050


Java Compiler is stored in JDK, JRE or JVM?

1570


What is the java virtual machine?

1144


How do you remove duplicates from an array in java?

1015


What does string intern() method do?

1135


What are the basic control structures?

1040


What is string intern in java?

1089


What are thread local variables?

1237


Are true and false keywords?

1071


Why set is used in java?

1070


How do you do descending order in java?

1013


How are variables stored?

1035