Re: How's dot.net doing nowadays?



Okay, now this makes a bit more sense to me. It's still uncommon for me to want to intermix objects like this, but I can see a bit more how it could be useful at times.

I guess it comes from my database roots, but I still tend to think mostly in terms of a hierarchy, not in terms of similar-but-not-the-same objects, so this style of "a has identical properties to b, but is otherwise unrelated to it" is foreign to me.

> PData_PersonalData = "I haz customer"

Ummm...been programming in LOL Code recently, have we?



Rob

Steve Gerrard wrote:
Robert Morley wrote:
' Class PData (interface)
Public Property Get PersonalData As String
End Property

' Class Customer
Implements PData
Private Property Get PData_PersonalData As String
PData_PersonalData = "I haz customer"
End Property

' Class Supplier
Implements PData
Private Property Get PData_PersonalData As String
PData_PersonalData = "I haz supplier"
End Property

' using it with a mixed collection of Customers and Suppliers

Dim PDataCol As Collection
Set PDataCol = New Collection

PDataCol.Add New Customer
PDataCol.Add New Supplier
PDataCol.Add New Supplier
PDataCol.Add New Customer

Dim oData As PData

For Each oData In PDataCol
Debug.Print oData.PersonalData
Next oData
.



Relevant Pages

  • Re: more on delete from join
    ... and a relation C with predicate "c is a customer" and value: ... So Bill is a supplier, Bill is a customer and Bob is a customer. ... predicates P, Q and R, a view that is the union of the table with predicate ...
    (comp.databases.theory)
  • Denied Connection Errors for NetBios Name and Session (137 and 139
    ... Scenario: Customer and Supplier offices. ... TCP 139 NetBios Session from Local Host to Customer VPN. ...
    (microsoft.public.isa.vpn)
  • NetBios 139/137 IP traffic causes Denied Connection and wont go a
    ... Scenario: Customer and Supplier offices. ... TCP 139 NetBios Session from Local Host to Customer VPN. ...
    (microsoft.public.isa.configuration)
  • Re: XP Requirement Analysis?
    ... problem with a formal contract between customer and supplier. ... agile methods are just a return to the hacking of '60s. ... Is waterfall dead, or merely moribund? ...
    (comp.object)
  • Re: simple advise needed on contracts
    ... I received an order from a UK customer for 1 load ... I agreed this with my supplier. ... so the customer can't buy elsewhere at the same price and is ... At what point did I agree to the verbal contract? ...
    (uk.legal)

Loading