Categories
5G Network
Agile
Amazon EC2
Android
Angular
Ansible
Arduino
Artificial Intelligence
Augmented Reality
AWS
Azure
Big Data
Blockchain
BootStrap
Cache Teachniques
Cassandra
Commercial Insurance
C#
C++
Cloud
CD
CI
Cyber Security
Data Handling
Data using R
Data Science
DBMS
Design-Pattern
DevOps
ECMAScript
Fortify
Ethical Hacking
Framework
GIT
GIT Slack
Gradle
Hadoop
HBase
HDFS
Hibernate
Hive
HTML
Image Processing
IOT
JavaScript
Java
Jenkins
Jira
JUnit
Kibana
Linux
Machine Learning
MangoDB
MVC
NGINX
Onsen UI
Oracle
PHP
Python
QTP
R Language
Regression Analysis
React JS
Robotic
Salesforce
SAP
Selenium
Service Discovery
Service Now
SOAP UI
Spark SQL
Testing
TOGAF
Research Method
Virtual Reality
Vue.js
Home
Q&A
SAFe
AWS
JAVA
Hadoop
Blockchain
Cache
Bootstrap
DevOps
Kibana
Vue.js
Git
Cyber Security
HBase
Ask a Question
What are the different types of classes in C#?
Home
Dot Net
What are the different types of classes in C#?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
Q:
What are the different types of classes in C#?
#dotnet
#chash
#basicchash
Answer
▼ Show
1
Answer
0
votes
answered
Jun 25, 2019
by
Venkatshastri
Partial class
– Allows its members to be divided or shared with multiple .cs files. It is denoted by the keyword
Partial.
Sealed class
– It is a class which cannot be inherited. To access the members of a sealed class, we need to create the object of the class. It is denoted by the keyword
Sealed
.
Abstract class
– It is a class whose object cannot be instantiated. The class can only be inherited. It should contain at least one method. It is denoted by the keyword
abstract.
Static class
– It is a class which does not allow inheritance. The members of the class are also static. It is denoted by the keyword
static
. This keyword tells the compiler to check for any accidental instances of the static class.
Learn More with Madanswer
Related questions
+1
vote
Q: What are sealed classes in C#?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#chash
#dotnet
#basicchash
+1
vote
Q: What are the different types of Delegates?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#dotnet
#chash
#basicchash
#basicc#
+1
vote
Q: What are generics in C#.NET?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#dotnet
#chash
#basicchash
#c#
+1
vote
Q: What are C# attributes and its significance?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#dotnet
#chash
#basicchash
#c#
+1
vote
Q: What are the types of Serialization?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#chash
#basicchash
#dotnet
#basicc#
+1
vote
Q: What is Reflection in C#?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#dotnet
#chash
#c#
#basicchash
#basicc#
+1
vote
Q: Explain Code compilation in C#.
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#dotnet
#chash
#basicchash
#c#
...