- C# 7 and .NET Core 2.0 Blueprints
- Dirk Strauss Jas Rademeyer
- 92字
- 2021-08-27 19:55:26
Encapsulation
Simply put, this means that the inner workings of the class (the implementation details) are not necessarily shared with outside code. Remember that we mentioned earlier that a class is something that you just want to use and expect it to work. The class exposes what it needs to to the calling code, but it maintains tight control over the inner workings it implements.
You can, therefore, hide the variables, properties, and methods by scoping them as private. This way, you protect the data contained inside the class from accidental corruption.
推薦閱讀
- 深入理解Android(卷I)
- Getting Started with ResearchKit
- 編程卓越之道(卷3):軟件工程化
- Bulma必知必會
- Cassandra Design Patterns(Second Edition)
- Web Application Development with R Using Shiny(Second Edition)
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- 軟件架構:Python語言實現
- 網站構建技術
- Python忍者秘籍
- BeagleBone Black Cookbook
- SciPy Recipes
- Python Programming for Arduino
- PHP 8從入門到精通(視頻教學版)
- 基于GPU加速的計算機視覺編程:使用OpenCV和CUDA實時處理復雜圖像數據