- C# Programming Cookbook
- Dirk Strauss
- 120字
- 2021-07-14 11:08:44
Introduction
As you probably know, classes are simply containers for related methods and properties to describe some object in your software. An object is an instance of a specific class and, sometimes, mimics real-world things. When thinking of a car, you might create a vehicle class that contains certain attributes (properties) that all vehicles contain, such as automatic or manual transmission, wheel count (not all vehicles have only four wheels), or fuel type.
When we create an instance of the vehicle class, we can create a car object, an SUV object, and so on. Here lies the power of classes, which is to describe the world around us and translate it into a programming language that a compiler can understand.
推薦閱讀
- Learn ECMAScript(Second Edition)
- C++ Primer習題集(第5版)
- Interactive Data Visualization with Python
- 編寫高質量代碼:改善Python程序的91個建議
- 云計算通俗講義(第3版)
- Eclipse Plug-in Development:Beginner's Guide(Second Edition)
- 軟件架構:Python語言實現
- Mastering Drupal 8 Views
- Java SE實踐教程
- Flowable流程引擎實戰
- Visual Basic程序設計(第三版)
- C語言程序設計
- 視窗軟件設計和開發自動化:可視化D++語言
- 數字媒體技術概論
- Mastering PowerCLI