First review the Polymorphism in C #, and observe the implementation of polymorphism in the compiler through some test classes and functions.
The code is as follows
As an example of Obja in an instance, the compiler begins with Class A, stepping through the subclasses of a to find the function's override until there is no overriding or reaching the type of the object in memory that obja corresponds to.
Use of properties
Attributes are a notable feature of C # that differs from other programming languages, and its implementation facilitates the encapsulation of data. Before I did ASP, attributes were indispensable in the model of the MVC architecture.
This is a common use of attributes
Get set can override the read and write functions that set it
The property is not different from the field when it is used.
Winphone application development attempts because of my computer's vs missing some components and temporarily unable to install, temporarily cannot experiment.
C # learning Record (iv)