Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# virtual static method

Why is static virtual impossible? Is C# dependent or just don't have any sense in the OO world?

I know the concept has already been underlined but I did not find a simple answer to the previous question.

like image 903
Toto Avatar asked Aug 07 '09 09:08

Toto


1 Answers

virtual means the method called will be chosen at run-time, depending on the dynamic type of the object. static means no object is necessary to call the method.

How do you propose to do both in the same method?

like image 115
sbi Avatar answered Oct 05 '22 11:10

sbi