"beau" <> wrote in message
news: om...
> I hava interface like this
>
> // public interface CalculatorFunction {
> // public void invoke();
> // }
>
> I gotto overide it with some other classes in order to make it perform
> like a pocket calculator. I wrote this
>
> // public class One implements CalcultorFunction {
> //
>
> and that's it.
my lecturer sucks, really hard to understand what
> he taught. and after just more than 1 month of studying Java he gave
> me this project.
> In this class I want to implement the button 1 function. could
> somebody help?
> Thanks in advance!
>
> Beau
That's crazy. You can't make that many classes and feel good about
yourself. If you keep this up, you'll have at least a dozen classes. But,
if you insist on it, you need to implement the interface. What that means
is that you need to have method in your child class with (in your case) a
void invoke method. Every variable or method specified (return types, too)
in an interface must be implemented in its children.
--
Elliott