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
What is the difference between Java1.4 and Java1.5
What is string subsequence method?
What is mnemonic in assembly language?
What is empty string literal in java?
What is difference between static class and normal class?
How can we make sure main() is the last thread to finish in java program?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
How do you declare a variable?
Which class is the superclass of all classes?
Where can i get Latest SUN Certification Dumps and what are the Sun Certification Codes that are available, Im new to JAVA, so please gimme info as i need to write J2EE - Core Java Certification
Is java hashset ordered?
What is a numeric format?
When can an object reference be cast to an interface reference in java programming?
Tell me about your ability to work under pressure
What are autoboxing and unboxing? When does it occur?