Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Professional PHP6
BOOK: Professional PHP6
This is the forum to discuss the Wrox book Professional PHP6 by Edward Lecky-Thompson, Steven Nowicki; ISBN: 9780470395097
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional PHP6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 28th, 2013, 11:06 AM
Authorized User
Join Date: Sep 2012
Posts: 13
Thanks: 3
Thanked 1 Time in 1 Post
Default The Liskov Substitution Principle For Chapter 5 Collections

I just want to point out to those who are reading through Chapter 5 on collections that the suggestion given for overriding the addItem method ( see page 107 ) violates the Liskov Substitution Principle for programming.


So by having the sub-class CourseCollection requires an object of type Course, you are violating the aforementioned principle.

Similar Threads
Thread Thread Starter Forum Replies Last Post
xml copy with text substitution from map mancocapac XSLT 10 April 7th, 2011 07:26 PM
Dependency Inversion Principle Richard Smith BOOK: Professional Enterprise .NET 0 August 17th, 2010 08:21 PM
Variable substitution in logging.properties Gap_Tooth Apache Tomcat 0 July 21st, 2008 02:50 PM
Correct my xslt for data substitution asap XSLT 0 July 29th, 2006 03:42 PM
Substitution for CodeContextObject MKri VB.NET 2002/2003 Basics 0 August 20th, 2004 03:38 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.