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
Why java applets are more useful for intranets as compared to internet?
What is the difference between call by reference and call by pointer?
What are the different types of sorting in java?
State differences between C and Java?
how to one war file class to another war file class?
Can you override static methods?
What is a pointer and does java support pointers?
Is string a wrapper class?
What is the difference between a choice and a list?
Can list be final in java?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What are the 4 versions of java?
Is 0 an even number?
describe method overloading
Difference between ‘is-a’ and ‘has-a’ relationship in java?