Re: Implement interface



<posted & mailed>

Tony Johansson wrote:

> Hello!
>
> When a class implaments an Interface must the class implement all methods?

Yes, that's the idea.


> Whan happen if the class don't implament all methods in the interface.
> Will it cause compile error then.

It doesn't compile.

>
> //Tony

--
Remove '.nospam' from e-mail address to reply by e-mail
.



Relevant Pages

  • Re: Anonymous Inner class Creation
    ... > I got an unexpected token compile error. ... Why implement that interface? ... public runmethod for thread entry. ... public void run ...
    (comp.lang.java.programmer)
  • Re: Implementing Interfaces in C#
    ... me an error when implementing an interface, but no such luck. ... Visual C# in the Visual Studio 2003 IDE give me a fatal error if I attempt ... > VB.net on the other hand generates a compile error if a method is not ...
    (microsoft.public.dotnet.languages.csharp)
  • Implement interface
    ... When a class implaments an Interface must the class implement all methods? ... Whan happen if the class don't implament all methods in the interface. ... Prev by Date: ...
    (comp.lang.java)
  • Re: Implementing Interfaces in C#
    ... "Class1 does not implement interface member ABC.DoSomething" ... public interface ABC ... public class Class1: ABC ... > VB.net on the other hand generates a compile error if a method is not ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Implement interface
    ... > When a class implaments an Interface must the class implement all methods? ... > Whan happen if the class don't implament all methods in the interface. ... Prev by Date: ...
    (comp.lang.java)