Click here to Skip to main content
15,895,859 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi friends

1.if u write a virtual method as a private,do we override this method?
2.if u write a virtual method as a static,do we override it as non static method?
Posted

Hi,
1. Virtual and abstract method can't be private.
2. Static member can't be virtual or abstract.
 
Share this answer
 
Comments
AZADKUMARREDDY 1-Aug-11 2:59am    
thanks vivekse
Sergey Alexandrovich Kryukov 1-Aug-11 11:20am    
Correct, a 5.
--SA
It might help you,

virtual [^]

:)
 
Share this answer
 
Comments
AZADKUMARREDDY 1-Aug-11 2:59am    
thanks a lot rahman
Mohammad A Rahman 1-Aug-11 5:11am    
You welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900