Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

What is difference between synchronize and concurrent collection in java?

188


What is <> used for in java?

220


What is scanner in java?

164


What are predicates in java 8?

164


which pattern is default in scanner package?

1452






Explain java coding standards for classes or java coding conventions for classes?

246


What is files manifesting?

1384


What is variable and its types?

184


What is a buffer in computer?

172


What is an iterator java?

161


What are the elements of java?

173


What is int lol?

174


Can we override static methods in java?

232


why are there separate wait and sleep methods? : Java thread

199


What are the two ways of implementing multi-threading in java?

246