O'Reilly logo

C# Web Development with ASP.NET: Visual QuickStart Guide by Jose Mojica

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Special Members

At this point, if you have been reading the book sequentially, you probably know the basics of writing classes—how to define a class, and how to add members such as fields and functions to a class. In the last chapter you also learned how to build one class by inheriting code from another class.

Aside from the basic members that you can add to a class, there are a few members that fall into the “special members” category. These are members that add functionality beyond what a basic member provides. For example, there are functions known as constructors that can trigger automatically when you create an instance of the class. There are also function definitions that enable the user of the class to pass a variable number ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required