Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > BOOK: Professional PHP6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 28th, 2013, 11:06 AM
Authorized User
Points: 69, Level: 1
Points: 69, Level: 1 Points: 69, Level: 1 Points: 69, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2012
Location: Indiana, United States
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.

http://stackoverflow.com/questions/1...irtual-methods

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


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 11:19 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.