Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 OOP 语言不直接支持伪接口时,有没有办法形成伪接口?
它有虚函数吗?接口只不过是一个只有虚函数的基类,要么没有任何主体,要么带有一个在使用基类版本时抛出错误的存根。