Association and depency

From: bobsled (sleding_at_sands.com)
Date: 04/24/04

  • Next message: Wolfgang Keller: "Re: Lazy Load and Inheritance Mappers (Fowler Patterns)"
    Date: Sat, 24 Apr 2004 18:32:17 GMT
    
    

    Would you please check the code example blow to see if Association and
    Dependency are represented correctly in code? Thank you very much!

    class License;

    class Car;

    class Driver
    {
        Car* hiscar;//ASSOCIATION - Driver is associated with Car
    public:
        void own(License* l) { l->getLicenseNumber(); } // DEPENDENCY
    }


  • Next message: Wolfgang Keller: "Re: Lazy Load and Inheritance Mappers (Fowler Patterns)"