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 ...
Get C# Web Development with ASP.NET: Visual QuickStart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.