Home > Store

Sams Teach Yourself Object-Oriented Programming with Visual Basic.NET in 21 Days

Register your product to gain access to bonus material or receive a coupon.

Sams Teach Yourself Object-Oriented Programming with Visual Basic.NET in 21 Days

Premium Website

  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2002
  • Edition: 1st
  • Premium Website
  • ISBN-10: 0-672-32149-1
  • ISBN-13: 978-0-672-32149-8

This book is focused on "getting the concepts" as well as teaching how to apply OOP concepts in the new version of Visual Basic. The reader is not expected to have any mastery of a given OOP language. In fact, the stress of having to learn the syntax of an OOP language, without first having a strong conceptual foundation about the OOP paradigm, often prevents the programmer from doing effective Object Oriented Programming at the language level. However, a beginner¿s knowledge of the Visual Basic language is a definite plus.



The source code for the examples developed in the book - 268 kb -- code.zip

Sample Content

Online Sample Chapters

Creating Structures in Visual Basic .NET

Enclosing Features and Data in .NET Objects

Learning to Speak OOP

Using Strings in Visual Basic .NET

Table of Contents

(NOTE: Each chapter concludes with a Summary, Q&A, and Workshop.)


How This Book Is Organized. Conventions Used in This Book.


Day 1. Object-Oriented Programming 101: Making the Task Application.

Creating a Project. Defining the SimpleMsg Object. Creating a SmartMsg Class. Building the MsgReader Object. Putting It All Together.

Day 2. Learning to Speak OOP.

Objects. Classes. Members and Scope. Properties. Methods and Behavior. Events and Delegates. Constructors. Destructors. Interfaces.

Day 3. Enclosing Features and Data in Objects.

Designing a Public Class Interface. Protecting Class Members. Defining Private Class Members. Designing Objects Using Encapsulation.

Day 4. Making New Objects by Extending Existing Objects.

Understanding Inheritance. Fine-tuning the Class. Using Inheritance in Visual Basic .NET.

Day 5. Giving Objects Polymorphic Behavior.

Understanding the Benefits of Polymorphism. Using Polymorphism in Visual Basic .NET.

Day 6. Building Complex Objects by Combining Objects.

Understanding Composition Versus Inheritance. Designing Objects Using Composition.

Day 7. Getting to Know the Visual Basic .NET Programming Environment.

Working in the Microsoft .NET Framework. Working with the Visual Basic .NET IDE. Running and Debugging Applications. Using Online Help.

Appendix Bonus Project. Putting on the Dog…With Class.

Peeking Ahead at the Result. Creating the Base Class. Using the Base Class. Developing the Doggone Logic.

Week 1. In Review.


Day 8. Working with Visual Basic .NET Data Types.

Exploring Visual Basic .NET's Array of Data Types.

Day 9. Organizing Classes into Groups.

Understanding Namespaces.

Day 10. Creating a User Interface.

Choosing the Form for the Task. Using Windows Forms. Using Web Forms.

Day 11. Creating and Using Components.

Creating Visual Basic .NET Component Classes. Programming Classes for Runtime.

Day 12. Building Web Applications.

Object-Oriented ASP.NET with Visual Basic .NET. Understanding Web Services.

Day 13. Deploying Visual Basic .NET Projects.

Understanding Assemblies. Using Assemblies. Deploying Assemblies.

Day 14. Working with Object Interfaces.

Revisiting Interfaces and OOP. Creating the Interface Contract. Programming for Interfaces. Implementing Interfaces. Using Interfaces as Callbacks.

Week 2. In Review.


Day 15. Handling Events, Messages, and Notifications.

Revisiting Events and Delegates. Using Asynchronous Operations with Events. Creating and Using Custom Events and Delegates. Using Events for Notification.

Day 16. Gracefully Capturing Errors.

Understanding Structured Exception Handling. Creating and Using Custom Exception Classes.

Day 17. Developing and Using Remote Objects.

Understanding the Fundamentals of Remote Objects. Choosing Between Copies and References. Using Channels for Communication. Building a Host and Client for TCP Connections.

Day 18. Designing a Project Management Application.

Meeting with the Client. Designing with the Requirements.

Day 19. Creating the Project Management Application.

Creating a Class Module. Creating the Interface. Creating Classes.

Day 20. Adding Features to the Application.

Designing a Visual Class. Creating a Visual Class. Creating the Forms.

Day 21. Enhancing the Application's Features.

Persisting Data. Introducing XML. Understanding the Document Object Model and XPath. Coding the Class Module. Seeing the Data. The Product, Project, and ProjectItems Classes.

Week 3. In Review.
Appendix A. Answers to Quizzes.

Day 1, “Object-Oriented Programming 101: Making the Task Application”. Day 2, “Learning to Speak OOP”. Day 3, “Enclosing Features and Data in Objects”. Day 4, “Making New Objects by Extending Existing Objects”. Day 5, “Giving Objects Polymorphic Behavior”. Day 6, “Building Complex Objects by Combining Objects”. Day 7, “Getting to Know the Visual Basic .NET Programming Environment”. Day 8, “Working with Visual Basic .NET Data Types”. Day 9, “Organizing Classes into Groups”. Day 10, “Creating a User Interface”. Day 11, “Creating and Using Components”. Day 12, “Building Web Applications”. Day 13, “Deploying Visual Basic .NET Projects”. Day 14, “Working with Object Interfaces”. Day 15, “Handling Events, Messages, and Notifications”. Day 16, “Gracefully Capturing Errors”. Day 17, “Developing and Using Remote Objects”. Day 18, “Designing a Project Management Application”. Day 19, “Creating the Project Management Application”. Day 20 “Adding Features to the Application”. Day 21 “Enhancing the Application's Features”.



Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership