Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 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 October 16th, 2005, 04:13 PM
Registered User
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default C++ classes and private members

What would make or prompt someone to change private variables? This question was posted in a forum and I cannot find a legitimate answer! Any insight is greatly appreciated.

Old November 2nd, 2005, 05:30 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma

Variables are named as variables because their value can vary. Be it private variables or public. Private variables’ values are not changed directly and this job is trusted to public methods instead that the class exposes.
What are you trying to ask here in not very clear though, because whenever you use a class you change the values of the private variables of that class (if there exist any) through method calls almost always. So please be specific as to what it is that you actually wanna ask.

Ankur Verma

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Fore_color in calculated members preetham SQL Server 2005 1 November 23rd, 2007 07:33 AM
Members list happygv Forum and Wrox.com Feedback 9 April 10th, 2007 11:33 AM
Listing members quiksilverhg Excel VBA 1 October 6th, 2005 05:09 AM
Private members in constructors shortt BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 2 May 16th, 2005 03:03 PM
Best way to secure a members section tdaustin Classic ASP Basics 2 May 18th, 2004 07:30 AM

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