Re: Declaring a Constructor in an Interface?
Hi,
[color=blue]
> I have always believed interfaces were superior to abstract classes.
> I apologie for the misleading information i might have given.[/color]
They are two different things, an abstract typemay define some
functionality and let other to be defined by the derived type, an interface
dictate the methods/properties a type MUST implement.
Of course the class define an interface implicitely , IIRC there was a
programming language where you had to explicitly define the interface of a
type, but I may be wrong :)
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Hi,
[color=blue]
> I have always believed interfaces were superior to abstract classes.
> I apologie for the misleading information i might have given.[/color]
They are two different things, an abstract typemay define some
functionality and let other to be defined by the derived type, an interface
dictate the methods/properties a type MUST implement.
Of course the class define an interface implicitely , IIRC there was a
programming language where you had to explicitly define the interface of a
type, but I may be wrong :)
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Comment