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 much is a java license?
Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).
What does it mean that a class or member is final?
What is the full name of java?
What is difference between core java and java ee?
Can I learn java in 3 months?
Outline the major features of java.
What are the restrictions that are applied to the java static methods?
What are the important features of Java 9 release?
How many types of java are there?
what is collatration?
How do you check if an arraylist is not empty?
Is java an open source?
What is the purpose of a parameter?
What is difference between path and classpath variables?