Selasa, 20 Juli 2010
Knights, Knaves, Protected and Internal
When you override a virtual method in C# you are required to ensure that the stated accessibility of the overridden method - that is, whether it is public, internal, protected or protected internal(*) – is exactly re-stated in the overriding method. Except in one case. I refer you to section 10.6.4 of the specification, which states: an override declaration cannot change the accessibility of the
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar