Training
Certifications
Books
Special Offers
Community




 
Inside C#
Author Tom Archer
Pages 432
Disk 1 Companion CD(s)
Level All Levels
Published 05/09/2001
ISBN 9780735612884
ISBN-10 0-7356-1288-9
Price(USD) $49.99
To see this book's discounted price, select a reseller below.
 

More Information

About the Book
Table of Contents
Sample Chapter
Index
Related Series
Related Books
About the Author

Support: Book & CD

Rate this book
Barnes Noble Amazon Quantum Books

 


Chapter 7: Properties, Arrays, and Indexers continued


Summary

C# properties consist of field declaration and accessor methods. Properties enable smart access to class fields so that a programmer writing a client for the class doesn’t have to try to determine whether (and how) an accessor method for the field was created. Arrays in C# are declared by placing an empty square bracket between the type and the variable name, a syntax slightly different than the one used in C++. C# arrays can be single-dimensional, multidimensional, or jagged. Objects in C# can be treated like arrays through the use of indexers. Indexers allow programmers to easily work with and track many objects of the same type.


Previous   |  Table of Contents   |  Next




Top of Page


Last Updated: Saturday, July 7, 2001