Wrox Programmer Forums
BOOK: Stephens' Visual Basic Programming 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' Visual Basic Programming 24-Hour Trainer by Rod Stephens; ISBN: 978-0-470-94335-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' Visual Basic Programming 24-Hour Trainer 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 September 18th, 2011, 08:07 PM
Authorized User
Join Date: May 2011
Posts: 46
Thanks: 27
Thanked 0 Times in 0 Posts
Smile Ex 23-3

Interesting ... creating a class and then within that class creating members of that class ... like a recursive call.

Keith Z.
Old September 18th, 2011, 10:48 PM
Rod Stephens's Avatar
Wrox Author
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts

Almost like one.

Many programmers also forget that a class can use its own properties. Often people use a backing variable and property procedures to access it. Then inside the class they directly access the backing variable. Usually it's better to use the property procedures so you get all of their advantages, such as value checking and the ability to set breakpoints in there.

You can even create a class inside another class. In that case, you can ,make the inner class private so only the outer class can use it.

There are all kinds of odd things you can do with classes

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
The Following User Says Thank You to Rod Stephens For This Useful Post:
zavodney (September 18th, 2011)
Old September 18th, 2011, 11:22 PM
Authorized User
Join Date: May 2011
Posts: 46
Thanks: 27
Thanked 0 Times in 0 Posts

I started to solve the exercise differently, but it seemed cumbersome. I had to look at your solution for a few minutes to see what it was doing. I found it quite intriguing. Thank you for using that particular solution. It opens an avenue I had not considered yet.

Keith Z.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Code on page 23 Hugo West BOOK: Professional Enterprise .NET 0 September 2nd, 2011 05:50 AM
chapter 2 page 23 youngbones BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 2 April 15th, 2011 01:35 PM
Chapter 2 page 23 youngbones BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 March 30th, 2011 12:21 PM
Listing 23-15 John Leo BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 0 April 4th, 2007 02:42 PM

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