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


Please Help Members By Posting Answers For Below Questions

What is a numeric string?

568


What is continuity of a function?

528


What is the function of log?

548


Why enumeration is faster than iterator?

531


Can set contain duplicates?

553






What is the public method modifier?

549


What is sorting algorithm in java?

527


Explain method local inner classes ?

597


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

1379


How to display arraylist values in java?

492


What is the difference between JVM and JRE?

626


Can a boolean be null java?

545


What is the maximum size of list in java?

547


What are static blocks in java ?

617


What is the arraylist in java?

535