Hi
I have a query regarding the use of an abstract function in an abstract class.
public abstract class A{
public abstact void func(Object o);
public void func1(){
x = func(o)
}
}
public class B extends A{
public void func(Object o){
y = o;
return y;
}
}
public class C extends A{
public void func(Object o){
y = #some value#
return y
}
}
As in the class c the override function func is not using the argument anywhere in its definition whereas class b is using that argument. So i want to ask is this a good way to do or there is some other method.
Please help me in this.
Thanks