P
parkarumesh
Hi,
I have a superclass say
public class Parent {
public String go() {
.
.
.
}
}
Assume i have written some code in the go method of parent class.
Also i have a child class say,
public class Child {
public String go() {
.
.
.
super.go();
}
}
I have overridden the go method of parent class in the child class. I
write some code in the go() of Child class and give a call to Parent's
go() using super.go() as I want to execute the functionality written
in the go() of Parent.
I want to know is it logical to call super.go(), when go is actually
overridden by child class.
Regards,
parkarumesh
I have a superclass say
public class Parent {
public String go() {
.
.
.
}
}
Assume i have written some code in the go method of parent class.
Also i have a child class say,
public class Child {
public String go() {
.
.
.
super.go();
}
}
I have overridden the go method of parent class in the child class. I
write some code in the go() of Child class and give a call to Parent's
go() using super.go() as I want to execute the functionality written
in the go() of Parent.
I want to know is it logical to call super.go(), when go is actually
overridden by child class.
Regards,
parkarumesh