C Curious Mar 28, 2007 #1 Hi, Anyone can tell me the difference between an abstract base class and an interface? Thanks!
J Jon Skeet [C# MVP] Mar 28, 2007 #2 Curious said: Anyone can tell me the difference between an abstract base class and an interface? Click to expand... The most obvious differences are: 1) You can implement multiple interfaces, but only derive (directly) from one base class 2) Abstract classes can have implementations - interfaces *just* specify what the members of the interface are, not how they're implemented
Curious said: Anyone can tell me the difference between an abstract base class and an interface? Click to expand... The most obvious differences are: 1) You can implement multiple interfaces, but only derive (directly) from one base class 2) Abstract classes can have implementations - interfaces *just* specify what the members of the interface are, not how they're implemented
9 9-11 Was An Inside Job Mar 29, 2007 #4 Deeper insight... [1] http://aspalliance.com/1213 [2] http://en.csharp-online.net/Should_I_use_an_abstract_class_or_an_interface? <%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL http://clintongallagher.metromilwaukee.com/
Deeper insight... [1] http://aspalliance.com/1213 [2] http://en.csharp-online.net/Should_I_use_an_abstract_class_or_an_interface? <%= Clinton Gallagher NET csgallagher AT metromilwaukee.com URL http://clintongallagher.metromilwaukee.com/