- 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.
推薦閱讀
- Neo4j Essentials
- Web程序設計(第二版)
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(入門與提高篇)
- Nginx Lua開發實戰
- SQL Server實用教程(SQL Server 2008版)
- Learning Ionic
- 計算機應用基礎(第二版)
- Android 5從入門到精通
- 基于JavaScript的WebGIS開發
- C++從零開始學(視頻教學版)(第2版)
- Cloud Development andDeployment with CloudBees
- Learning Google Apps Script
- 匯編語言程序設計教程
- 軟件定義存儲:原理、實踐與生態
- Data Visualization:Representing Information on Modern Web