An abstract class is simply a class which must be inherited. Other than
that, inheritance works the same way with derived classes; they inherit
everything in the base class. Abstrac methods and properties in an abstract
class do not contain a body, and therefore, the class which derives from the
Abstract class must implement the methods/properties, as well as defining
the bodies for them.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
"MicroMoth" <st***********@forvus.co.uk> wrote in message
news:E9**********************************@microsof t.com...
If I do put the Properties in the abstract class do I have to override
them
in the same way as I would a method from an abstract class.
"Mattias Sjögren" wrote:
> Do I create the Property methods in the abstract class or the
> inheriting
> class, for example
The way you've written the A class now the properties have to be in A
since
the backing fields are private. You'd have to declare them protected (or
something less restrictive) to access them from the derived class B.
Mattias