Steve McConnell Quote
Here's a summary of when to use inheritance and when to use containment: If multiple classes share common data but not behavior, create a common object that those classes can contain. If multiple classes share common behavior but not data, derive them from a common base class that defines the common routines. If multiple classes share common data and behavior, inherit from a common base class that defines the common data and routines. Inherit when you want the base class to control your interface; contain when you want to control your interface.
Steve McConnell
Here's a summary of when to use inheritance and when to use containment: If multiple classes share common data but not behavior, create a common object that those classes can contain. If multiple classes share common behavior but not data, derive them from a common base class that defines the common routines. If multiple classes share common data and behavior, inherit from a common base class that defines the common data and routines. Inherit when you want the base class to control your interface; contain when you want to control your interface.
Related Quotes
She was a gypsy, as soon as you unravelled the many layers to her wild spirit she was on her next quest to discover her magic. She was relentless like that, the woman didn't need no body but an open r...
Nikki Rowe
Tags:
adventure, artist, authentic, balance, brave heart, courage, empowering women, free spirit, freedom, growth