[問題] static method 為何不能同時為 virtual
今天看到這樣的一句話
A derived class can inherit a static member.
But a static member in C# can't be marked as override, virtual or abstract.
However it is possible to hide a base class static method in a derived
class by using the keyword new.
想請問 宣告為static的同時 是有什麼考慮
要規定不可以同時為 override, virtual or abstract??
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.229.69.209
推
09/24 01:20, , 1F
09/24 01:20, 1F
→
09/24 01:20, , 2F
09/24 01:20, 2F