摘要: 可重载和不可重载运算符 internal class Program { static void Main(string[] args) { Animal animal1 = new Animal("旺财",2); Animal animal2 = new Animal("咪咪",3); Conso 阅读全文
posted @ 2023-03-13 19:54 茜茜87 阅读(35) 评论(0) 推荐(0)
摘要: 显示转换:static explicit operator 隐式转换:static implicit operator internal class Program { static void Main(string[] args) { //基础转换 int a = 1; float b = a; 阅读全文
posted @ 2023-03-13 19:27 茜茜87 阅读(26) 评论(0) 推荐(0)