Why does Abstract Factory use abstract class instead of interface?

后端 未结 4 530
故里飘歌
故里飘歌 2021-01-12 02:37

I am learning about design patterns and the first example in the book is about Abstract Factory. I have built the exercise in VS and all looks good, but there is one questio

4条回答
  •  长发绾君心
    2021-01-12 03:15

    It's probably a typo in the book and the first "interface" was actually an abstract class.

    There's no such thing as an "abstract interface". An interface is by definition abstract.

提交回复
热议问题