1. Absolute path and relative path
Absolute path: This file can be found directly on my computer by the given path.
Relative path: The path of the file relative to the application.
Conclusion:
We should try to use relative paths in development.
2. Packing, unpacking
Boxing: Converts a value type to a reference type.
Unboxing: Converts a reference type to a value type.
Look at whether the two types have occurred boxing or unpacking, to see whether there is an inheritance relationship between the two types.
3, the process of creating a file stream object is written in the using, it will automatically help us to release the resources occupied by the stream.
4, the means of realizing polymorphism
1), virtual method
Steps:
1, the method of the parent class is marked as a virtual method, using the keyword virtual, this function can be the quilt class to write again.
2), abstract class
When a method in the parent class does not know how to implement it, consider writing the parent class as an abstract class and writing the method as an abstract method.
C # and. NE Study Day 12th