摘要:
https://medium.com/the-gathering-kind/when-you-re-nearly-40-and-unmarried-and-you-realize-you-re-going-to-be-okay-f1802188394dA few weeks ago my best ... 阅读全文
摘要:
参考自Default visibility for C# classes and members (fields, methods, etc)?Classes and structs that are declared directly within a namespace (in other wo... 阅读全文
摘要:
https://docs.microsoft.com/en-us/dotnet/api/system.timers.timer?view=netframework-4.7.2 Be aware that .NET includes four classes named Timer, each of 阅读全文
摘要:
输出结果是 A a = new A(); B b = new B(); a.Fun2(b); 将子类B的实例b作为参数传递给父类A的引用a1。Fun2的this是父类的实例a a1.Fun1(1); 输出2 因为父类的变量a1里实际存储的是子类的实例b,所以这里调用的是子类Fun1 Fun1(5); 阅读全文
摘要:
如果把B类中的new改为override的话 输出结果就为 A B B.Fun() 取自http://www.cnblogs.com/jiekzou/p/4457384.html 解答:[http://bbs.csdn.net/topics/390099393] C#中,如果子类没有显示调用父类的有 阅读全文