H
H.MuthuKumaraRajan
Hi,
Is it possible to invoke the constructor of the Top Most Class in the Hierarchy
from the Bottom most class.
for eg.,
class A {
long l;
A(long l) {
this.l = l;
}
A(){}
}
class B extends A {
String s;
B(String s) {
this.s=s;
}
B(){}
}
public class C extends B {
C(long l){
// TO INVOKE THE CONSTRUCTOR WITH LONG PARAMETER IN CLASS A
}
}
I want to invoke the Constructor (with long parameter) in class A from class C,
How to do this?
Thanks in advance,
Rajan
Is it possible to invoke the constructor of the Top Most Class in the Hierarchy
from the Bottom most class.
for eg.,
class A {
long l;
A(long l) {
this.l = l;
}
A(){}
}
class B extends A {
String s;
B(String s) {
this.s=s;
}
B(){}
}
public class C extends B {
C(long l){
// TO INVOKE THE CONSTRUCTOR WITH LONG PARAMETER IN CLASS A
}
}
I want to invoke the Constructor (with long parameter) in class A from class C,
How to do this?
Thanks in advance,
Rajan