M
Mize-ze
Hi,
Let's say I have a class A which implements interface I, which has a
method foo() in it,
I want (and I must) implement I.foo() method in class A.
Now, I have a Class B which extends A and therefore inherits it's
foo() method. however,
I don't want class B to use A's implementation of foo() but instead
implement its own .
I can easily just override the method by implementing the foo() method
in B.
BUT what if I want to enforce the user to implement foo()?
Anyway of doing this?
It's like having class A as abstract class( foo() as abstract). but it
isn't...
Thanks.
Let's say I have a class A which implements interface I, which has a
method foo() in it,
I want (and I must) implement I.foo() method in class A.
Now, I have a Class B which extends A and therefore inherits it's
foo() method. however,
I don't want class B to use A's implementation of foo() but instead
implement its own .
I can easily just override the method by implementing the foo() method
in B.
BUT what if I want to enforce the user to implement foo()?
Anyway of doing this?
It's like having class A as abstract class( foo() as abstract). but it
isn't...
Thanks.