Differences between Abstract class and Static class in C#


Today we are going to see the differences between abstract class and static class in c#. It is very important thing in c#. We have there are 4 types of classes in c# such as abstract,static,partial and sealed.


Sl.No
Abstract Class
Static Class
1.
Object can’t be created
Object can’t be created
2.
Created using Abstract keyword
Created using Static Keyword
3.
It should be Inherited to access data
Use class name with dot operator to access data
4.
Can be inherited
Can’t be inherited

Comments

Popular posts from this blog

Types of Architects

Basic measurements

Search html table contents based on its td using Jquery