google-site-verification=ECX1M6_Vb39ty4VtQDXQce6wOjmPTxSettd3hTIZb9Q

C# - Can we define Abstract Class as a Static?

random

C# - Can we define Abstract Class as a Static?

Can we define Abstract Class as a Static?

 
No, we can not define abstract class as static.

Why?

Because abstract classes contain abstract methods that should be implemented in derived classes. "static" keyword in class definition means that all methods in the class are static too. But static methods cannot be inherited or overridden, and that is why they can't be abstract.
C# - Can we define Abstract Class as a Static? Reviewed by Ravi Kumar on 6:14 PM Rating: 5

No comments:

All Rights Reserved by Etechpulse © 2012 - 2017

Contact Form

Name

Email *

Message *

Powered by Blogger.