Signup as a Tutor

As a tutor you can connect with more than a million students and grow your network.

.Net/C# .NET

How many types classes in C sharp?

Asked by Last Modified  

Answer
Follow 1

Please enter your answer

20 Answers   8 Likes | 1 Dislikes

There are 4 Types of Classes in C#.net. 1)Abstract(also known as pure virtual class) 2)Sealed 3)Partial 4)Static

Comments
Dislike Bookmark

Expert training in .NET, Android, Java, English, German

Types of classes in C#.Net: ? Abstract Class ? Partial Class ? Sealed Class ? Static Class

Comments
Dislike Bookmark

Types of classes: 1. Abstract class 2. Partial class 3. Sealed class 4. Static class

Comments
Dislike Bookmark

Join Urbanpro.com, India?s most trusted education portal for your learning requirements

POST YOUR REQUIREMENT NOW

Software engineer / Programmer

There are four types of classes in C# .Net 1) Abstract class - An Abstract Class means that, no object of this class can be instantiated, but can make derivation of this. It can serve the purpose of base class only as no object of this class can be created. Abstract Class is denoted by the keyword abstract. 2) Partial class - Partial Class allows its members ? method, properties, and events ? to be divided into multiple source files. At compile time these files get combined into a single class. 3) Sealed class - A sealed class is a class which cannot be inherited. A sealed class cannot be a base class. The modifier abstract cannot be applied to a sealed class. By default, struct (structure) is sealed. It is the last class in hierarchy. To access the members of a sealed class, you must create objects of that class. Sealed Class is denoted by the keyword sealed. 4) Static class - A Static Class is one which cannot be instantiated. The keyword new cannot be used with static classes as members of such class can be called directly by using the class name itself.

Comments
Dislike Bookmark

.Net Techno(.NET is in my blood)

In C sharp, Types are classified into two: Value Type and Reference Type...Class comes under Reference types. Kindly revert back if reply don't match with your question.

Comments
Dislike Bookmark

.Net Trainer/MCP, MCID: 10878733

1. Instance class (instance members or static members or both) 2 static class 3 abstract class 4 sealed class 5 partial class 6 internal ** extern is used on static type members static (methods) with Dllimport attribute while using interoperability services and unmanaged code.

Comments
Dislike Bookmark

MS.Net and MSBI with SQL Server expert

Types of classes: 1. Abstract class 2. Partial class 3. Sealed class 4. Static class

Comments
Dislike Bookmark

There are following types of Classes in C# 1. Sealed Classes 2. Abstract Classes 3. Partial Classes 4. Static Classes

Comments
Dislike Bookmark

There are four types of classes in .net 1. simple class 2. Abstract class 3.Sealed class 4. Partial class simple class: A class can have non Abstract members, can be derived and can be instantiated Abstract class: A class can abstract as well as non abstract members, must be inherited and does not the instance Sealed class: A class have only non abstract member, cannot derived and have instance partial class: same as class but allows to divide the application into multiple files

Comments
Dislike Bookmark

Thank You for your question Mun..... There are four types of classes. Simple class, Abstract class, Sealed class and Partial class. Thank You, Team DishaaPro www.dishaapro.com

Comments
Dislike Bookmark
Related Questions

.Net/C# .NET

what is the different between c# .net and asp.net?

Asked by Androsen 01/11/2016

Answer 39
Follow 0
Answer submitted successfully. ×

Please enter your answer

.Net/C# .NET

training

Asked by Mir Ali 15/09/2016

Answer 14
Follow 0
Answer submitted successfully. ×

Please enter your answer

.Net/C# .NET

How to overload logical operator in C#? It gives one of the paramters should be containing type? Please help.

Asked by Rupali W. 14/05/2015

Answer 15
Follow 0
You will receive 2 Pro Score points (valid for 6 months) as soon as your answer gets approved. ×

Please enter your answer

Looking for a Tutor?

Find best Tutors in your locality on UrbanPro.

FIND NOW

Now ask questions in any of the 1500+ Categories, and Get Answers from Tutors on UrbanPro.com

ASK A QUESTION

Related Lessons

OOPs Concepts

Session Objectives: Discuss the following: Drawbacks of traditional programming Need for Object: Oriented approach Object: Oriented techniques Discuss Object: Oriented Concepts Objects. Classes. Abstraction. Inheritance. Encapsulation. Polymorphism. Need...

.NET With AngularJS Training Program Syllabus

What You will Learn in .NET with AngularJS Training Program? Introduction to .Net: Features of .Net, CTS, CLS, CLR and MSIL. C# & .Net Basics and Branching & Flow Control. OOPs Concepts, Abstract Classes & Methods, Name Spaces and Exception...

Pro Developer Program Syllabus

What you will learn in Pro-Developer Program: i. Introduction to Web Technologies. ii. Introduction to .Net - Features of .Net, CTS, CLS, CLR and MSIL. iii. C# & .Net Basics - Data Types, Type Conversions and Methods in C#. iv. Branching &...

Object Initializers And Collection Initializers: A Syntactic Sugar In C# 3.0

i. Introduction: Object initializers and Collection initializers are part of C# 3.0.These two concepts add a flexibility, readability, and maintainability in C#. As we are C# developers, we should know how and in which situations we can use these two...

What Is An Array? Explain Its Type.

Array: Array is a collection of similar type of data in an array varaiable. Array start with Zero Index and maximum length of array is total element - 1. i.e., Suppose n is the length of array, total element in array is n-1. In memory it occupy the contiguous...

Sponsored

Find Best C# .NET ?

Find Now »