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

Yes

abstract class test{
int i=10;
abstract void method();
test(){
System.out.println("Abstract class constructor");
}
}
public class test1 extends test{
void method(){
//implement abstract method of test
}
public static void main(String args[]){
test1 t=new test1();
}
}

Is This Answer Correct ?    29 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which oo concept is achieved by using overloading and overriding?

1059


Can we declare a constructor as final?

1395


What is java util?

1069


What will be the default values of all the elements of an array defined as an instance variable?

1077


What is loop in java?

1049


What is treeset in java?

1040


How are the elements of a gridbaglayout organized?

1120


Can we create an object of private class?

1021


Is math an abstract class in java?

1077


How do you sort a set in java?

966


What are design patterns and please explain?

1136


What is dynamic array in java?

1077


What is the full meaning of java?

1095


What is java string pool?

1057


What is null data type?

1186