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 3. Conditionals and Loops

In the last chapter you learned how to write classes. Let’s briefly review what we know about classes. A lot of the concepts in this section will feel somewhat simple if you have done programming in other languages, like JavaScript, VBScript, or C++.

You learned that classes are the building blocks of applications in C#. No code can exist outside of a class. Classes have two main characteristics—they have state and behavior. The state of the class is defined by the instance fields that the class has. The state is the information that is exclusive to each instance of the class. For example, each Checking account may have its own balance. The behavior is defined by the methods that a class has. The behavior is what ...

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