- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 120字
- 2021-07-03 00:11:57
Introduction
As you probably know, classes are simply containers for related methods and properties to describe an 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.
推薦閱讀
- Mastering Visual Studio 2017
- 新手學(xué)Visual C# 2008程序設(shè)計
- Mastering Scientific Computing with R
- WordPress Plugin Development Cookbook(Second Edition)
- EPLAN實戰(zhàn)設(shè)計
- ServiceNow:Building Powerful Workflows
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- Nagios Core Administration Cookbook(Second Edition)
- Python從入門到精通(第3版)
- C# 7.0本質(zhì)論
- Mastering Machine Learning with scikit-learn
- Web前端開發(fā)精品課:HTML5 Canvas開發(fā)詳解
- Swift iOS Programming for Kids
- Cloud Native Python
- AVR單片機C語言應(yīng)用100例