class A { public static q = 1; public static w (){ return 'w' } } // 请问如何写让w方法和q支持下面两种写法呢 A.w() A.q (new A()).w() (new A()).q
class A { public static q = 1; public static w() { return 'w'; } public get q() { return A.q; } public w() { return A.w(); } }
这样?
1.4m articles
1.4m replys
5 comments
56.9k users