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.
クラス A とクラス B の 2 つのクラスがあります。クラス A には、インスタンス変数としてクラス B のインスタンスがあります。クラス B がクラス A にメッセージを送信したり、そのメソッドの 1 つを呼び出したりする方法はありますか?