How to instantiate an abstract class in C #?

-2

I know that the abstract class can not be instantiated. But I need to call it in Windows Forms and I'm not getting it.

    
asked by anonymous 27.04.2018 / 17:33

1 answer

2

It's not possible, the reason for it being abstract is just not allowing it to be instantiated. This class type exists to be inherited.

You can inherit it in a concrete class and instantiate this child class. You may need to implement some missing part.

Maybe it's not the right thing to do. If you need an abstract class the way it was designed it gets weird. The problem may be something else.

    
27.04.2018 / 17:37