S
Simon Woods
Hi
I'm just working through (and learning) the standard GoF Design Pattern and
the example of the Bridge pattern on
http://www.dofactory.com/Patterns/PatternBridge.aspx#_self2
I notice at the heart of the real world example is an abstract class
MustInherit Class DataObject
Public MustOverride Sub NextRecord()
Public MustOverride Sub PriorRecord()
Public MustOverride Sub NewRecord(ByVal name As String)
Public MustOverride Sub DeleteRecord(ByVal name As String)
Public MustOverride Sub ShowRecord()
Public MustOverride Sub ShowAllRecords()
End Class
which gets inherited by another class CustomerData which populates itself
with various customers.
I'm wondering why an abstract class is used here rather than an interface.
Could someone help me out pls?
Thanks
Simon
I'm just working through (and learning) the standard GoF Design Pattern and
the example of the Bridge pattern on
http://www.dofactory.com/Patterns/PatternBridge.aspx#_self2
I notice at the heart of the real world example is an abstract class
MustInherit Class DataObject
Public MustOverride Sub NextRecord()
Public MustOverride Sub PriorRecord()
Public MustOverride Sub NewRecord(ByVal name As String)
Public MustOverride Sub DeleteRecord(ByVal name As String)
Public MustOverride Sub ShowRecord()
Public MustOverride Sub ShowAllRecords()
End Class
which gets inherited by another class CustomerData which populates itself
with various customers.
I'm wondering why an abstract class is used here rather than an interface.
Could someone help me out pls?
Thanks
Simon