Main BLOGGER
Google
WWW THIS BLOG
Wednesday, February 02, 2005
 
C++ interview
http://www.oneparticularharbor.net/sam/interview.html


The Liskov Substitution Principle
- Methods that use references to superclass must be able to use objects of subclasses without knowing it

The ability to substitute a subclass object for a superclass object is characteristic of good design.

The Open-Close principle
- Software entities, i.e., classes, modules, functions, and so forth, should be open for extension, but closed for modification

Any design that requires code changes to handle the introduction of a newly derived class is a bad design





<< Home

Powered by Blogger

Google
WWW THIS BLOG