In the sample chapter, select three of the 60 sections of the book and click the title to download them. 1.2 What Is Inheritance Inheritance: a familiar topic that is easy to misunderstand. This is what most people feel most intuitively about inheritance. It is familiar because, as an inheritance of one of the three elements of object-oriented, every technical researcher repeats the topic of inheritance in his career. It is easy to misunderstand, it is because it is always intertwined with encapsulation and Polymorphism to form a complicated situation. Taking inheritance as an example, how to clarify the multi-layer Inheritance Mechanism, how to understand the similarities and differences between implementation inheritance and interface inheritance, and how to understand the relationship between inheritance and polymorphism does not seem simple. 5.2 object creation beginning and end Understanding the object creation process is the entry to access the CLR operating mechanism from the underlying layer and the key to understanding. NET Automatic Memory Management. Through the detailed description in this section, we will establish a relatively comprehensive understanding of object creation, memory allocation, initialization process, method calling, and other technologies, at the same time, it also clearly grasps the thread stack and the execution mechanism of the managed heap. 8.5 same line: Delegate, anonymous method and Lambda expression Delegate to implement the type-safe callback method. In. NET, callback is everywhere, so delegation is everywhere. The event model is built on the delegate mechanism, and Lambda expressions are essentially an anonymous delegate. This section will complete a delegation trip, comprehensively elaborate on delegation and its core topics, and sort out delegation, delegation chain, events, anonymous methods, and Lambda expressions one by one. In the. NET technology field, you must know what it is. Please give you the answer in this book. For more information, see. NET. |
|