How many types of classes are in C# OOPs programming?
How many types of classes are in C# OOPs programming?
Hi, my self Ravi Vishwakarma. I have completed my studies at SPICBB Varanasi. now I completed MCA with 76% form Veer Bahadur Singh Purvanchal University Jaunpur.
SWE @ MindStick | Software Engineer | Web Developer | .Net Developer | Web Developer | Backend Engineer | .NET Core Developer
Ashutosh Kumar Verma
31-Aug-2021Types of class-
Generally, there are 4 different types of classes are used in c# programming language.
1- Abstract class - is created by using 'abstract' keyword.
ex- public abstract class Test
{
// statements of the class.
}
2- Static class - is created by using 'static' keyword.
ex- public static class Test
{
// statements of this class
}
3- Partial class- is created by using 'partial' keyword.
public partial class Test
{
//statements of this class
}
4- Sealed class- is created by using 'sealed' keyword.
public sealed class Test
{
//statements of this class
}