Can we inherit the constructor in a Class?please give one
example.
Answer Posted / brijendra kumar(java xavient)
We connot inherit the constructor in class beause the
construtor name is same as the class name.
class Brijendra
{
int x,y;
Brijendra(int a , int b) //constructor of class
{
a=x;
b=y;
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How you can force the garbage collection?
What are actual parameters?
Is java written in c?
What is a marker interface?
What is the advantage of preparedstatement over statement?
Explain the pointers in Java?
Can we make main() thread as daemon?
Difference between final and effectively final ? Why is effectively final even required ?
What are loops in java? What are three types of loops?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
Why unicode is important?
What is string variable?
What is a functional interface?
What is final keyword?
What is an class?