Association and depency
From: bobsled (sleding_at_sands.com)
Date: 04/24/04
- Previous message: bobsled: "Understanding of "programming to interface""
- Next in thread: Daniel T.: "Re: Association and depency"
- Reply: Daniel T.: "Re: Association and depency"
- Reply: EventHelix.com: "Re: Association and depency"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
}
- Previous message: bobsled: "Understanding of "programming to interface""
- Next in thread: Daniel T.: "Re: Association and depency"
- Reply: Daniel T.: "Re: Association and depency"
- Reply: EventHelix.com: "Re: Association and depency"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]