OOP with Microsoft Visual Basic .NET and Microsoft Visual C# Step By Step 2002.pdf
(
2499 KB
)
Pobierz
64997165 UNPDF
OOP with Microsoft Visual Basic .NET and Microsoft Visual C# Step
by Step
by Robin A. Reynolds-Haertle
ISBN: 0735615683
Microsoft Press
© 2002 (393 pages)
This intuitive, self-paced learning title is designed to help you master the
basics of object-oriented programming with Visual Basic.NET or Visual C#.
Table of Contents
Step
Introduction
Chapter 1
- Writing Your First Object-Oriented Program
Chapter 2
- Creating Class Instances with Constructors
Chapter 3
- Creating Fields and Properties
Chapter 4
- Working with Methods
Chapter 5
- Using Inheritance to Create Specialized Classes
Chapter 6
- Designing Base Classes as Abstract Classes
Chapter 7
- Responding to Changes with Events and Exceptions
Chapter 8
- Putting It All Together with Components
Chapter 9
- Providing Services Using Interfaces
Chapter 10
- Using Classes Interchangeably Through Polymorphism
Chapter 11
- Using Shared and Static Members
Chapter 12
- Overloading Operators with Visual C#
Chapter 13
- Saving Instance Data
Chapter 14
- Reducing Complexity by Design
Appendix
- Additional Resources
Index
Height Gage
List of Sidebars
OOP with Microsoft Visual Basic .NET and
Microsoft Visual C# .NET Step by Step
PUBLISHED BY
Microsoft Press
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399
Copyright © 2002 by Robin A. Reynolds-Haertle
All rights reserved. No part of the contents of this book may be reproduced or transmitted
in any form or by any means without the written permission of the publisher.
Library of Congress Cataloging-in-Publication Data
Reynolds-Haertle, Robin A., 1959-
OOP with Microsoft Visual Basic .NET and Microsoft Visual C# Step by Step / Robin A.
Reynolds-Haertle.
p. cm.
Includes bibliographical references and index.
OOP with Microsoft Visual Basic .NET and Microsoft Visual C# .NET Step by
ISBN 0-7356-1568-3
1. Object-oriented programming (Computer science). 2. Microsoft Visual BASIC. 3. C#
(Computer program language) I. Title.
QA76.64 .R495 2001 005.2’768—dc21 2001052122
Printed and bound in the United States of America.
1 2 3 4 5 6 7 8 9 QWT 7 6 5 4 3 2
Distributed in Canada by Penguin Books Canada Limited.
A CIP catalogue record for this book is available from the British Library.
Microsoft Press books are available through booksellers and distributors worldwide. For
further information about international editions, contact your local Microsoft Corporation
office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our
Web site at
www.microsoft.com/mspress.
Send comments to:
mspinput@microsoft.com
.
IntelliSense, Microsoft, Microsoft Press, Visual Basic, Visual C#, Visual Studio, and
Windows are either registered trademarks or trademarks of Microsoft Corporation in the
United States and/or other countries
.
Other product and company names mentioned
herein may be the trademarks of their respective owners.
The example companies, organizations, products, domain names, e-mail addresses,
logos, people, places, and events depicted herein are fictitious. No association with any
real company, organization, product, domain name, e-mail address, logo, person, place,
or event is intended or should be inferred.
Acquisitions Editor:
Danielle Bird
Project Editor:
Kathleen Atkins
Technical Editor:
Jack Beaudry
Body Part No. X08-42192
MICROSOFT LICENSE AGREEMENT
Book Companion CD
IMPORTANT—READ CAREFULLY:
This Microsoft End-User License Agreement
(“EULA”) is a legal agreement between you (either an individual or an entity) and
Microsoft Corporation for the Microsoft product identified above, which includes
computer software and may include associated media, printed materials, and “online” or
electronic documentation (“SOFTWARE PRODUCT”). Any component included within
the SOFTWARE PRODUCT that is accompanied by a separate End-User License
Agreement shall be governed by such agreement and not the terms set forth below. By
installing, copying, or otherwise using the SOFTWARE PRODUCT, you agree to be
bound by the terms of this EULA. If you do not agree to the terms of this EULA, you are
not authorized to install, copy, or otherwise use the SOFTWARE PRODUCT; you may,
however, return the SOFTWARE PRODUCT, along with all printed materials and other
items that form a part of the Microsoft product that includes the SOFTWARE PRODUCT,
to the place you obtained them for a full refund.
Software PRODUCT LICENSE
The SOFTWARE PRODUCT is protected by United States copyright laws and
international copyright treaties, as well as other intellectual property laws and treaties.
The SOFTWARE PRODUCT is licensed, not sold.
1.
GRANT OF LICENSE.
This EULA grants you the following rights:
a.
Software Product.
You may install and use one copy of the SOFTWARE PRODUCT
on a single computer. The primary user of the computer on which the SOFTWARE
PRODUCT is installed may make a second copy for his or her exclusive use on a
portable computer.
b.
Storage/Network Use.
You may also store or install a copy of the SOFTWARE
PRODUCT on a storage device, such as a network server, used only to install or run the
SOFTWARE PRODUCT on your other computers over an internal network; however,
you must acquire and dedicate a license for each separate computer on which the
SOFTWARE PRODUCT is installed or run from the storage device. A license for the
SOFTWARE PRODUCT may not be shared or used concurrently on different computers.
c.
License Pak.
If you have acquired this EULA in a Microsoft License Pak, you may
make the number of additional copies of the computer software portion of the
SOFTWARE PRODUCT authorized on the printed copy of this EULA, and you may use
each copy in the manner specified above. You are also entitled to make a corresponding
number of secondary copies for portable computer use as specified above.
d.
Sample Code.
Solely with respect to portions, if any, of the SOFTWARE PRODUCT
that are identified within the SOFTWARE PRODUCT as sample code (the “SAMPLE
CODE”):
i.
Use and Modification.
Microsoft grants you the right to use and modify the source
code version of the SAMPLE CODE,
provided
you comply with subsection (d)(iii) below.
You may not distribute the SAMPLE CODE, or any modified version of the SAMPLE
CODE, in source code form.
ii.
Redistributable Files.
Provided you comply with subsection (d)(iii) below, Microsoft
grants you a nonexclusive, royalty-free right to reproduce and distribute the object code
version of the SAMPLE CODE and of any modified SAMPLE CODE, other than
SAMPLE CODE, or any modified version thereof, designated as not redistributable in the
Readme file that forms a part of the SOFTWARE PRODUCT (the “Non-Redistributable
Sample Code”). All SAMPLE CODE other than the Non-Redistributable Sample Code is
collectively referred to as the “REDISTRIBUTABLES.”
iii.
Redistribution Requirements.
If you redistribute the REDISTRIBUTABLES, you
agree to: (i) distribute the REDISTRIBUTABLES in object code form only in conjunction
with and as a part of your software application product; (ii) not use Microsoft’s name,
logo, or trademarks to market your software application product; (iii) include a valid
copyright notice on your software application product; (iv) indemnify, hold harmless, and
defend Microsoft from and against any claims or lawsuits, including attorney’s fees, that
arise or result from the use or distribution of your software application product; and
(v) not permit further distribution of the REDISTR IBUTABLES by your end user. Contact
Microsoft for the applicable royalties due and other licensing terms for all other uses
and/or distribution of the REDISTRIBUTABLES.
2.
DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS.
•
Limitations on Reverse Engineering, Decompilation, and Disassembly.
You may
not reverse engineer, decompile, or disassemble the SOFTWARE PRODUCT, except
and only to the extent that such activity is expressly permitted by applicable law
notwithstanding this limitation.
•
Separation of Components.
The SOFTWARE PRODUCT is licensed as a single
product. Its component parts may not be separated for use on more than one computer.
•
Rental.
You may not rent, lease, or lend the SOFTWARE PRODUCT.
•
Support Services.
Microsoft may, but is not obligated to, provide you with support
services related to the SOFTWARE PRODUCT (“Support Services”). Use of Support
Services is governed by the Microsoft policies and programs described in the user
manual, in “online” documentation, and/or in other Microsoft-provided materials. Any
supplemental software code provided to you as part of the Support Services shall be
considered part of the SOFTWARE PRODUCT and subject to the terms and conditions
of this EULA. With respect to technical information you provide to Microsoft as part of the
Support Services, Microsoft may use such information for its business purposes,
including for product support and development. Microsoft will not utilize such technical
information in a form that personally identifies you.
•
Software Transfer.
You may permanently transfer all of your rights under this EULA,
provided you retain no copies, you transfer all of the SOFTWARE PRODUCT (including
all component parts, the media and printed materials, any upgrades, this EULA, and, if
applicable, the Certificate of Authenticity),
and
the recipient agrees to the terms of this
EULA.
•
Termination.
Without prejudice to any other rights, Microsoft may terminate this EULA
if you fail to comply with the terms and conditions of this EULA. In such event, you must
destroy all copies of the SOFTWARE PRODUCT and all of its component parts.
3.
COPYRIGHT.
All title and copyrights in and to the SOFTWARE PRODUCT (including
but not limited to any images, photographs, animations, video, audio, music, text,
SAMPLE CODE, REDISTRIBUTABLES, and “applets” incorporated into the
Plik z chomika:
Varran
Inne pliki z tego folderu:
Microsoft Visual C# - Tutorials ( Video).iso
(600370 KB)
[C#.].Learn.C#.cd5.iso
(268952 KB)
[C#.].Learn.C#.cd4.iso
(271010 KB)
OOP with Microsoft Visual Basic .NET and Microsoft Visual C# Step By Step 2002.pdf
(2499 KB)
Visual C# 2008. Microsoft.pdf
(7670 KB)
Inne foldery tego chomika:
Access
Excel
jeleniewski
Książki C#, ASP.NET - english
Książki C#, ASP.NET - po polsku
Zgłoś jeśli
naruszono regulamin