Understanding Classes
Classes enable you to develop applications using object-oriented programming (OOP) techniques. Classes are templates that define objects. Although you may not have known it, you have been programming with classes throughout this book. When you create a new form in a Visual C# .NET project, you are actually creating a class that defines a form; forms instantiated at runtime are derived from the class. Using objects derived from predefined classes (such as a Visual C# .NET Form class), is just the start of enjoying the benefits of object-oriented programming—to truly realize the benefits of OOP, you must create your own classes.
The philosophy of programming with classes is considerably different from that of “traditional” ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access