Wrox Programmer Forums
|
BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer by Rod Stephens; ISBN: 9780470596906
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' C# Programming with Visual Studio 2010 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 June 15th, 2012, 10:08 AM
Authorized User
 
Join Date: Jan 2012
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Lesson 26 Question

Is the ComplexNumber a custom class we create here or is it one of C# system class??

Is that why, we do this.add(x) instead of this + x??

Why are we overloading methods here?

Thanks.
 
Old June 15th, 2012, 10:29 AM
Rod Stephens's Avatar
Wrox Author
 
Join Date: Jan 2006
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

In Lesson 26 you're building a new ComplexNumber class. It provides one of the most intuitive examples of operator overloading.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)





Similar Threads
Thread Thread Starter Forum Replies Last Post
fuzzy lookup lesson 26 rschmitz BOOK: Knight's 24-Hour Trainer: Microsoft SQL Server 2008 Integration Services 3 January 26th, 2014 09:36 AM
Lesson 25 - Shared Data Source Question oviera5 BOOK: Knight's Microsoft Business Intelligence 24-Hour Trainer 0 March 7th, 2012 11:32 PM
Lesson 3 question soneal777 BOOK: Stephens' C# Programming with Visual Studio 2010 24-Hour Trainer 1 August 30th, 2010 06:17 PM
chapter 26 code alfmeiggs BOOK: Excel 2003 VBA Programmer's Reference 0 November 3rd, 2005 05:57 PM





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