作者:手机用户2602901471 | 来源:互联网 | 2023-09-06 15:40
WhatdopeoplehereuseC++AbstractBaseClassconstructorsforinthefield?Iamtalkingaboutpu
What do people here use C++ Abstract Base Class constructors for in the field? I am talking about pure interface classes having no data members and no non-pure virtual members.
人们在这里使用C ++抽象基类构造函数?我说的是没有数据成员且没有非纯虚拟成员的纯接口类。
Can anyone demonstrate any idioms which use ABC constructors in a useful way? Or is it just intrinsic to the nature of using ABCs to implement interfaces that they remain empty, inline and protected?
任何人都可以用有用的方式展示任何使用ABC构造函数的习语吗?或者它只是固有的使用ABCs实现接口,它们保持空,内联和保护?
6 个解决方案