Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2005
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2005 by Ivor Horton; ISBN: 9780764571978
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2005 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 June 9th, 2006, 08:01 AM
Authorized User
 
Join Date: May 2006
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page 361 Constant Member Functions

Example listing, under heading 'Constant Member Functions of a Class' is missing 'const' in the Volume() function.

i.e.
double Volume() const
{...

(Reason on page 362: 'A const member function cannot call a non-const member function of the same class, since this would potentially modify the object.')






Similar Threads
Thread Thread Starter Forum Replies Last Post
C# constant functions viveksrivastava C# 4 December 6th, 2007 10:44 PM
Ch7 Const Member Functions of a Class proslambano BOOK: Ivor Horton's Beginning Visual C++ 2005 1 March 5th, 2007 05:01 PM
Content Page with functions in code behind Andrew_S ASP.NET 2.0 Basics 0 June 29th, 2006 11:34 AM
Forbidden access chapter12 page 361 chokk BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 March 22nd, 2005 05:07 PM
Static vs constant stoneman Access 2 December 10th, 2003 09:12 PM





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