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.
struct を使用して (メソッドの関数ポインターを使用して) クラスを実装できますか?
それはできます。実際、非常に初期の頃、C++ は C コードを生成するプリプロセッサで実装され、C コンパイラによってコンパイルされました。したがって、構造体と関数ポインターはあるがクラスがない言語を使用している場合は、それを行うことができます。特にきれいではないです。