Why can't an object of abstract class be created?

前端 未结 16 966
误落风尘
误落风尘 2020-12-02 21:25

Here is a scenario in my mind and I have googled, Binged it a lot but got the answer like

\"Abstract class has not implemented method so, we cant create the object\

16条回答
  •  臣服心动
    2020-12-02 21:52

    Here is a similar StackOverflow question. In short, it is legal to have a public constructor on an abstract class. Some tools will warn you that this makes no sense.

    Whats the utility of public constructors in abstract classes in C#?

提交回复
热议问题