Define an abstract class?



Define an abstract class?..

Answer / Prveen

An abstract class in C# is a type of class that cannot be instantiated directly and serves as a base class for other classes. Abstract classes contain at least one or more abstract methods, which are method signatures without any implementation. To declare an abstract class, use the keyword 'abstract' before its name:

```csharp
abstract class MyAbstractClass
{
public abstract void MyAbstractMethod(); // Abstract method signature
}
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

how background thread access to ui control?

1 Answers   HCL,


What is difference between "as" and "is" keyword?

1 Answers  


What are the different approaches of passing parameters to a method?

1 Answers  


Can you override private virtual methods?

4 Answers  


What is Implementation inheritance

1 Answers  


What is protected internal modifier in C#?

1 Answers   Arigo Infotech,


What namespaces are necessary to create a localized application?

1 Answers  


How can I develop an application that automatically updates itself from the web?

1 Answers  


What?s a delegate?

3 Answers  


What is different between Implicit conversion and Explicit conversion in C#?

1 Answers  


Is boxing an implicit conversion?

1 Answers  


What is msil in c#?

1 Answers  


Categories