What is the use of abstract class in C#?

An abstract class cannot be instantiated. The purpose of an abstract class is to provide a common definition of a base class that multiple derived classes can share .

Sizin İçin Seçtik  What are abstract classes in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *

What is the use of abstract class in C++?

The purpose of an abstract class (often referred to as an ABC) is to provide an appropriate base class from which other classes can inherit . Abstract classes cannot be used to instantiate objects and serves only as an interface. Attempting to instantiate an object of an abstract class causes a compilation error.

Sizin İçin Seçtik  Diyanet sigara içmek haram mı?

Leave a Reply

Your email address will not be published. Required fields are marked *