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
What is java objectoutputstream?
what is method reference in java 8?
Define linked list and its features with signature?
What is return code?
How static variable work in java?
What happens if a constructor is declared private?
What do you understand by copy constructor in java?
What is java abstraction with example?
what is the difference between the methods sleep() and wait()? : Java thread
What is navigable map in java?
What is variable argument in java?
What happens when you add a double value to a string?
What is string pooling concept?
Define inheritance with reference to java.
What is the use of accept () method in java?