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 a numeric string?
What is continuity of a function?
What is the function of log?
Why enumeration is faster than iterator?
Can set contain duplicates?
What is the public method modifier?
What is sorting algorithm in java?
Explain method local inner 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
How to display arraylist values in java?
What is the difference between JVM and JRE?
Can a boolean be null java?
What is the maximum size of list in java?
What are static blocks in java ?
What is the arraylist in java?