Object-Oriented Programming with Visual Basic .NET

Book description

One of the most significant features of Visual Basic .NET is the full support of object-oriented programming. For years, developers have been asking for it, but you may not be quite sure how it can help to create and maintain scalable .NET applications. VB.NET is a language that facilitates object-oriented programming, but does not guarantee good object-oriented code. That's where Object-Oriented Programming with Visual Basic .NET comes in. It will show you how to think about similarities in your application logic and how to design and create objects that maximize the benefit and power the .NET Framework enables. The concept of separating the interface from the implementation has been around for years, but with Object-Oriented Programming with Visual Basic .NET you'll put it all into practice and you'll never willingly go back to those old ways. With chapters on object fundamentals and class anatomy, you'll lay a foundation that will prepare you to think and apply code reuse principles. Following that, you'll be ready to dive deep into code and the dynamic ecology that it interacts with. Inheritance, containment, polymorphism, overloading, and overriding are just the beginning of this adventure. From there, you'll discover exception handling, reflection, serialization, and I/O. Packed with examples that will guide you through every step, Object-Oriented Programming with Visual Basic .NET is a guide for those with some programming experience. This book is for those who know Visual Basic 6.0 and are ready or have started the process of developing with Visual Basic .NET. It is an essential tool that will build your skills, as you become a master of Visual Basic .NET. It is one thing to know how to write object-oriented code. Knowing the when and the why is what makes good programmers. That's exactly what you'll know after reading this book.

Table of contents

  1. Copyright
  2. Preface
    1. Audience
    2. About This Book
    3. Assumptions This Book Makes
    4. Conventions Used in This Book
    5. How to Contact Us
    6. Acknowledgments
  3. Introduction
    1. Visual Basic .NET and Object-Oriented Programming
    2. The .NET Framework
  4. Object Fundamentals
    1. Creating and Compiling the Component
    2. Namespaces
    3. Using a Component
    4. Application Domains
    5. Contexts
    6. Assemblies
    7. Intermediate Language
    8. The Global Assembly Cache
    9. System Namespace
  5. Class Anatomy
    1. Member Variables
    2. Properties
    3. Methods
    4. Access Modifiers
    5. Passing Parameters
    6. Value Types
    7. Creation and Destruction
    8. Delegates and Events
    9. Design Considerations
    10. An Exercise
  6. Object-Orientation
    1. Generalization and Specialization
    2. Inheritance
    3. Containment
    4. Polymorphism
    5. Overloading
    6. Overriding
    7. Substitution
  7. Interfacing .NET
    1. Private Implementation
    2. Versioning
    3. Interfaces Versus Abstract Base Classes
    4. Interfaces in .NET
    5. Design Considerations
  8. Exceptional Objects
    1. The Basics of Exception Handling
    2. Unhandled Exception Handler
    3. The StackTrace Object
    4. Resuming Code
    5. Retrying Code
    6. Performance Counters
  9. Object Inspection
    1. Reflection
    2. Runtime Type Discovery
    3. Dynamic Type Loading
    4. Attributes
    5. Custom Attributes
  10. Object In, Object Out
    1. Streams
    2. Readers and Writers
    3. Serialization
    4. Schema Definition Tool
    5. Custom Serialization
    6. NetworkStream
  11. Object Remoting
    1. Channels
    2. A Remotable Object
    3. Windows Services
    4. The Client
    5. Designing for Remoting
    6. Marshal by Value (MBV)
    7. Hosting Objects in IIS
    8. Windows Service Versus IIS
    9. Authentication
  12. Web Services
    1. Writing a Web Service
    2. Web Services Versus Remoting
    3. Using Web Services from .NET Remoting
    4. Compatibility
    5. UDDI
    6. Accessing Data for the Web Service
  13. Bibliography
  14. Colophon
  15. Index

Product information

  • Title: Object-Oriented Programming with Visual Basic .NET
  • Author(s): J.P. Hamilton
  • Release date: October 2002
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9780596001469