ssg31415926
5/26/2008 7:39:00 AM
You can see an interface as a contract that a class must meet: it
defines the methods, including the parameters and return values. For
a class to implement an interface it must implement all of the defined
methods exactly as defined. However, an interface is not limiting in
that a class can define other methods or the same methods with other
signatures.
On May 26, 4:42 am, "Peter Duniho" <NpOeStPe...@nnowslpianmk.com>
wrote:
> On Sun, 25 May 2008 19:54:02 -0700, Marco Shaw [MVP]
>
> <marco.shaw@_NO_SPAM_gmail.com> wrote:
> > I'm just wondering if a "public interface" would be something associated
> > with a namespace and/or a class?
>
> Impossible to answer without more context. However, in .NET an
> "interface" is something completely different from a namespace or a class,
> even as they are "associated" with those things (interfaces and classes
> both exist within a namespace, and a class implements an interface).
>
> If you're not talking about a .NET interface, then who knows. It might
> be. It might not be.
>
> Pete